Caffeinated\Modules\Contracts\Repository::sortBy PHP Method

sortBy() public method

Sort modules by given key in ascending order.
public sortBy ( string $key ) : Collection
$key string
return Collection
    public function sortBy($key);

Usage Example

Beispiel #1
0
 /**
  * Sort modules by given key in ascending order.
  *
  * @param string $key
  *
  * @return Collection
  */
 public function sortBy($key)
 {
     return $this->repository->sortBy($key);
 }