Help with Velo Code on dynamic repeater

I am looking to be able to manually sort the content appearing on my dynamic repeater on one of the pages on my site. The already set options do not have the sorting I am looking for, so I was hoping to make a manual sort option with Velo, but I am unsure where to start.

I was hoping someone would be able to give pointers or provide pre-written code to assist with settings this up.

Thank you in advance.

How exactly do you want to sort it?

I’m guessing it’s not ascending/descending on any of the fields in your collection?

Working directly with the dataset you’re limited to what you can do with this
https://www.wix.com/velo/reference/wix-data/sort

You could get the items in the dataset as an array, then use javascript’s sort method on it, as it gives much more options, before you put the array into a repeater (?)

I am sure that is a great idea. I am just not a computer science person and don’t know anything about coding. :confused: