Пример #1
0
 public function sortBy($callback, $options = SORT_REGULAR, $descending = false)
 {
     parent::sortBy($callback, $options, $descending);
     $this->items = array_values($this->items);
     return $this;
 }
 private function returnSearchResults(\Illuminate\Database\Eloquent\Collection $volunteers, $search_id)
 {
     $volunteers->sortBy(sizeof('contactevents'));
     return view('volunteer.search.searchresults')->with(['volunteers' => $volunteers, 'search_id' => $search_id]);
 }