Hi All,

I am currently looking to insert a small list that allows the user to sort search results on my site like "Price: High to Low" etc.

I know that you can include a button and sort the listings that way but I want the listings to be sorted(Page reloaded with amended sql statement) when the user selects their chosen sorting option.

So probably going to pass the value to a function which reconstructs the URL and then need to load that URL.

Any ideas whether you can use the onclick function to firstly pass the value to a function and then reload the page that has been sorted?