This functionality is only available for certain module packages.

sortedBy(Block expression)

Sorts the Collection according to the assigned expression.

sortedBy(Block expression)
Argument Block expression
Return value Collection Sorted collection. The collection has the same type, as the collection, that sortedBy is sent to.