Composes a URL query parameter array for table sorting links.
A URL query parameter array that consists of all components of the current page request except for those pertaining to table sorting.
function tablesort_get_query_parameters() {
return drupal_get_query_parameters($_GET, array(
'q',
'sort',
'order',
));
}