function tapirsort_sql in Ubercart 6.2
Build an ORDER BY clause for a table's SELECT query based on the table's columns.
Parameters
$columns: The column array from a TAPIr table array.
Return value
The result of a tablesort_sql() call on the header info for this table.
1 call to tapirsort_sql()
- theme_uc_catalog_browse in uc_catalog/uc_catalog.pages.inc 
- Display a formatted catalog page.
File
- uc_store/includes/ tapir.inc, line 146 
- Contains the TAPIr code rolled into Ubercart core from Drupal contrib.
Code
function tapirsort_sql($columns) {
  $header = array();
  // Loop through the columns array...
  foreach ($columns as $column) {
    // And build a header array based on column information.
    $header[] = $column['cell'];
  }
  // Return the result of a tablesort on our header.
  return tablesort_sql($header);
}