Functions to aid in the creation of sortable tables. All tables created when rendering a '#type' => 'table' have the option of having column
tablesort_get_order($headers) Determines the current sort criterion. Parameters
tablesort_get_sort($headers) Determines the current sort direction. Parameters
tablesort_get_query_parameters() Composes a URL query parameter array for table sorting links.
tablesort_header(&$cell_content, array &$cell_attributes, array $header, array $ts) Formats a column
tablesort_init($header) Initializes the table sort context. File