Collection sort

Aus ExpeccoWiki

Wechseln zu: Navigation, Suche

Schema

Collection sort.jpg

Description

Generates a sorted copy of the input collection. This is different from using a SortedCollection right from the start: a SortedCollection immediately inserts added elements at an appropriate place, so that the SortedCollection is always sorted. In contrast, this block performs a sort algorithm (quicksort) on an initially unsorted collection, which can be an Array, orderedCollection, ByteArray or String.

Errors

With mixed elements (for example: Strings and Numbers), an error will be raised, as these elements cannot be compared.



Back to Standard Library.
Previous: Collection [ Select/Reject/Collect by ST Expression ]
Next: Collection [ Sort Ignoring Case ]


Meine Werkzeuge