Previous: , Up: SortedCollection   [Index]


1.156.9 SortedCollection: sorting

sort

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. Fails if the collections’s sort block is not the same as the default sort block.

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. Fails if the sort block is not the same as the collection’s sort block.