I am trying to set up a way for my site visitors to use a dropdown with SORT options so they may ‘sort by’ the data within the repeater on the page.
I’ve created a dropdown element which i’ve connected to an event handler (onClick). Upon the user clicking one of the fields to sort by (A-Z, Capacity, Sq. Ft) the data within the repeater is manipulated on the page. But it is NOT correct.
Further explanation: the dataset in this repeater is for a list of venues. Upon clicking ‘sort by’ : ‘capacity’ the dataset changes order but it is not actually changing correctly because the capacity is not being listed in ascending order. or descending for that matter. It seems to be random. I see no pattern in the order so it makes it harder to debug. would appreciate some advice on this. thanks!
also, here’s a pic for reference