Functions to aid in the creation of sortable tables.

All tables created with a call to theme('table') have the option of having column headers that the user can click on to sort the table by that column.

File

core/includes/tablesort.inc

Functions

Namesort ascending Description
tablesort_init Initializes the table sort context.
tablesort_header Formats a column header.
tablesort_get_sort Determines the current sort direction.
tablesort_get_query_parameters Composes a URL query parameter array for table sorting links.
tablesort_get_order Determines the current sort criterion.
tablesort_cell Formats a table cell.