$collection->sortBy($field, $direction='asc')

Sorts the collection by any number of fields

  • return ($collection)

Is something missing or incorrect? Edit this page on Github…