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


1.151.9 SequenceableCollection: sorting

sort

Sort the contents of the receiver according to the default sort block, which uses #<= to compare items.

sort: sortBlock

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

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.