$users->sortBy($field, $direction = 'desc', $method = SORT_REGULAR)

Sort the collection by one or multiple fields

  • return ($users)