sortSorting feature comes with various APIs.
See sorting entry of SLIB manual for discussion.
[procedure] sort sequence predicate
SLIB, Chicken: sequence may be a list or a vector. Expects predicate
to behave like <. Stable.
Bigloo: sequence may be a list or a vector.
Expects predicate to behave like <.
The document doesn't mention about stability.
STk, STklos: sequence may be a list or a vector. Expects predicate
to behave like <. Stable. Doesn't have sort!, merge, merge!.
[procedure] sort sequence [predicate]
Gauche: sequence may be a list or a vector.
Expects predicate to behave like <. Predicate
can be omitted. Unstable.
[procedure] sort predicate sequence
ChezScheme: sequence must be a list. Expects predicate
to behaves like <.
See also sort!, merge
|