1 views_query.test | protected ViewsTestCase::orderResultSet($result_set, $column, $reverse = FALSE) |
Helper function: order an array of array based on a column.
File
- core/
modules/ views/ tests/ views_query.test, line 82 - Tests for Views query features.
Class
- ViewsTestCase
- Abstract class for views testing.
Code
protected function orderResultSet($result_set, $column, $reverse = FALSE) {
$this->sort_column = $column;
$this->sort_order = $reverse ? -1 : 1;
usort($result_set, array($this, 'helperCompareFunction'));
return $result_set;
}