Match functions and results

Report a typo

Match the sorting functions with their descriptions:

Match the items from left and right columns
compareBy()
sortedWith()
sortedByDescending()
sortedBy()
Allows us to define on the fly the comparator for ordering a collection
Returns an ordered collection following the identified natural order
Returns an ordered collection according to the specified comparator
Returns an ordered collection following the identified natural order in an inverted way
___

Create a free account to access the full topic