Streaming live at 10am (PST)

How can I control CMS list order with Javascript or jquery?

Hey guys, how are you today?

Well, i need to control my collection list order via Javascript or jquery when i click in a button, does anyone know how to do it?
Thanks a lot

Yes, it is possible to sort items with JavaScript or jQuery

Thanks a lot :slight_smile:

Hi @samliew do you have any recommendations for sorting geolocation CMS items (longitude/latitude) by distance from the website visitor location? Thanks in advance

Yes, can be done using custom code, but needs lots of work.

Hi @samliew thanks for the reply, much appreciated! Do you have any guidance or useful resources that could help? Yesterday I was reading this article that explains how to sort list items by distance with JavaScript:

And I also found this Webflow project but which doesn’t seem to work properly:

If you have any advices or examples that apply to CMS list items order that would be much appreciated!