Initialize the table sort context.
function tablesort_init($header) { $ts = tablesort_get_order($header); $ts['sort'] = tablesort_get_sort($header); $ts['query'] = tablesort_get_query_parameters(); return $ts; }