Classes | Collections > Ordered

SortedList : List : SequenceableCollection : Collection : Object

a Collection whose items are kept in a sorted order.

Class Methods 8, function)

Creates a SortedList with the initial capacity given by size and a comparison function.

Inherited class methods

Instance Methods


Adds an item in the SortedList at the correct position.

SortedList[1, 2, 5, 6].add(4).postln;


Adds all the items in the collection into the SortedList.

SortedList[1, 2, 5, 6].addAll([0, 3, 4, 7]).postln;

Inherited instance methods

Undocumented instance methods

.copyRange(start, end)

.copySeries(first, second, last)


.function = value


.sortRange(i, j)