sorted
Also written: sorted()
A collection method that returns a new sorted array, smallest first, or in the order a closure decides.
Also written: sorted()
A collection method that returns a new sorted array, smallest first, or in the order a closure decides.