Match the sorting functions with their descriptions:
Custom sort order for collection
Match functions and results
Report a typo
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
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.