Skip to content

Kirby 5.1.3

$files->sorted()

Returns the collection sorted by the sort number and the filename

$files->sorted(): Kirby\Cms\Files

Return type

Kirby\Cms\Files<TFile>

This method modifies the existing $files object it is applied to and returns it again.

Parent class

Kirby\Cms\Files