/ Published in: PHP

Use instead of standard "sql\_tablesort()" function. Handles multiple "sort" in $header, but the arrow will be only on last sorted column. This can be handled with rewriting theme_table, for example.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$sorter = ''; foreach($header AS $field) { $tablesort[] = db_escape_string($field['field']) . ' ' . drupal_strtoupper(db_escape_string($field['sort'])); } } } return $sorter; }
Comments
