Next: , Previous: , Up: ArrayedCollection   [Index]


1.5.7 ArrayedCollection: sorting

sorted

Return a copy of the receiver sorted according to the default sort block, which uses #<= to compare items.

sorted: sortBlock

Return a copy of the receiver sorted according to the given sort block, which accepts pair of items and returns true if the first item is less than the second one.