How can i sort a list of elements/items based on specific text or numbers using jquery ?
Hello community.
I 'm building a search function which is filtering the listed items by their names everytime a user is start typing into an input field and at the same time it counts the number of displayed items/results.
I want to improve it more so i added 2 checkboxes that will allow users to sort the results by (eg best rated, or specific tags). In my current example there are 2 checkboxes (OPEN FIRST, BEST RATED)
How can i make them so if someone click on them to sort the listed items ?
Thanks in advance.