When querying the services via wixData, how can i sort them?
I have tried .ascending(‘serviceName’) but that doesn’t change anything…
A very simple requirement, as they are appearing in a seemingly random (ordered by _id i notice) order which is an awful user experience.
amotor
2
You have to manually call the sort or setSort function. See here: setSort - Velo API Reference - Wix.com
@amotor cheers, I thought as much but when trying that in Wix editor it was not playing nicely.
I ended up writing a small sort function in plain JavaScript and calling it on my query results data before passing it to the repeater, works a treat.