Capy-Bearer Documentation

Sort strings

lib call

Capy

function sort(items : dval) dval

Description

sort sorts the strings in a list-shaped dval.

This function does not change items.

Return Values

This function returns a new list-shaped dval in ascending order.

Example

Capy

var items := split("two,one", ",")
print(join(sort(items), ","), "\n")