Dynamically Sort a Repeater
Allow users to dynamically sort repeater data in ascending or descending order with a radio button using Corvid (a.k.a. Wix Code).
You can dynamically sort a table or repeater in ascending or descending order based on any field available in your collection. This example will show you how to sort a table displaying data from a #dbEmployee database by the last name or descending hourly rate based on a radio button selection. You can try it below.
The first step is to add a radio button (or whatever user input field you'd like) to toggle the new sort. An onChange event listener is added to the radio (called radioSort_change in this example). Thereafter, add the following sort code to the listener function in the page code.