public function RestfulDataProviderVariable::defaultSortInfo in RESTful 7
Defines default sort for variable names.
By default, the array of variables returned by Drupal is already sorted by variable name in ascending order, so we are returning a default sort here just for clarity.
Return value
array Array keyed by the sort field, with the order ('ASC' or 'DESC') as value.
1 call to RestfulDataProviderVariable::defaultSortInfo()
- RestfulDataProviderVariable::applyListSort in plugins/
restful/ RestfulDataProviderVariable.php  - Sort the list of variables.
 
File
- plugins/
restful/ RestfulDataProviderVariable.php, line 19  - Contains \RestfulDataProviderDbQuery
 
Class
- RestfulDataProviderVariable
 - @file Contains \RestfulDataProviderDbQuery
 
Code
public function defaultSortInfo() {
  return array(
    'name' => 'ASC',
  );
}