zl.sort Reference

Arrange a list in alphanumeric order

zl.sort

Description

zl.sort is used to sort the contents of a list. An argument is used to specify the sorting order. An int of -1 sorts the input list in descending order, and any other value sorts the input list in ascending order. This value can also be specified as an input in the right inlet.

Arguments

order [int]

Optional

An int of -1 sorts the input list in descending order, and any other value sorts the input list in ascending order.

Attributes

fuzzy [atom] (default: 0.)

Fuzzy floating-point comparison epsilon

zlmaxsize [atom_long]

Maximum List Length

Common Box Attributes

Messages

bang

Repeat previous output

int

An int in the right inlet sets the sorting order. An int of -1 sorts the input list in descending order, and any other value sorts the input list in ascending order.

float

TEXT_HERE

list

A list in the left inlet is sorted and output.

anything

TEXT_HERE

mode

The word 'mode' followed by one of the following words will set the mode of the object:
change, compare, delace, ecils, group, indexmap, iter, join, lace, len, lookup, median, mth, nth, queue, reg, rev, rot, scramble, sect, slice, sort, stack, stream, sub, sum, swap, thin, union, or unique.

See the reference for the corresponding mode for more information.

zlclear

Clears the currently held list.

Output

anything

Out left outlet:
Sorted list.

Out right outlet:
Indexes of sorted items.

See Also

Name Description
zl
zl.change
zl.compare
zl.delace
zl.ecils
zl.filter
zl.group
zl.indexmap
zl.iter
zl.join
zl.lace
zl.len
zl.lookup
zl.median
zl.mth
zl.nth
zl.queue
zl.reg
zl.rev
zl.rot
zl.scramble
zl.sect
zl.slice
zl.stack
zl.stream
zl.sub
zl.sum
zl.swap
zl.thin
zl.union
zl.unique