You are here

protected function ServicesViewsApiTestCase::orderResultSet in Services Views 7

Helper function: order an array of array based on a column.

File

tests/services_views.test, line 136

Class

ServicesViewsApiTestCase

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;
}