Having used the jquery tablesorter plugin for pagination and sorting purposes on a site, the client wants to use PHP now. Pagination is not a problem at all - but I need an efficient way to build the query string for sort purposes when I want to be able to sort the list based on (eg) price, name. I need to be able to potentially add extra select elements (or possibily even check boxes at some stage) so the code needs to be able to handle that.
What I need to avoid is repeated occurences of the parameters in the query string eg
which happens if you use something like window.location.href in the jquery - i would like the string to be converted to in this instance
Any help much appreciated!