sort
function:
- Can also be called as
order
Sort a list. If the first argument is a list, return list sorted.
Examples:
- running:
(sort [1, -2, 3.01, 3.05, -544, 100])
will give:[-544, -2, 1, 3.01, 3.05, 100]
- running:
(sort [1, 2, 3, 2, 3, 3])
will give:[1, 2, 2, 3, 3, 3]
- running:
(sort [null, true, false, {}, [1, 2, 3], "abc", "cde", {"key": 12}])
will give:[null, false, true, "abc", "cde", {}, {"key": 12}, [1, 2, 3]]
- running:
(sort 344)
will return nothing