Skip to content

Kirby 4.5.0

$files->sorted()

Returns the collection sorted by the sort number and the filename

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

Return type

Kirby\Cms\Files

This method does not modify the existing $files object but returns a new object with the changes applied. Learn more →

Parent class

Kirby\Cms\Files