Once, I needed sorting the results in a table keeping the search results coming from GET. I did like that:
unset($_GET['sort']); // sort param is removed, otherwise there will be created many sort params
$url = http_build_query($_GET);
echo "Title";
echo "Author";