menu 8 Menu Overview $pages->sort() Sorts the elements by any number of fields $pages->sort(): Kirby\Toolkit\Collection Return type Kirby\Toolkit\Collection Inherited from Kirby\Toolkit\Collection Source code kirby/src/Toolkit/Collection.php#L977