❌ Kirby 2 no longer actively supported. Migrate to a current version and
upgrade your v2 license now
.
$collection->sortBy($field, $direction='asc')
Sorts the collection by any number of fields
return
($collection)
↑
Toolkit API overview
←
$collection->slice($offset = null, $limit = null)
→
$collection->toArray($callback = null)
↓
Back to Toolkit API section
Top