function _devel_table_sort

Devel's table sort.

1 string reference to '_devel_table_sort'
devel_query_table in ./devel.module
Shows all the queries for the page.

File

./devel.module, line 1829

Code

function _devel_table_sort($a, $b) {
    $a = is_array($a[0]) ? $a[0]['data'] : $a[0];
    $b = is_array($b[0]) ? $b[0]['data'] : $b[0];
    if ($a < $b) {
        return 1;
    }
    if ($a > $b) {
        return -1;
    }
    return 0;
}