JanetDocsI'm feeling luckyGitHub sign in

sort



    function
    boot.janet on line 794, column 1

    (sort a &opt by)

    Sort an array in-place. Uses quick-sort and is not a stable sort.


See also:sort-bysorted1 exampleSign in to add an example
Loading...
(sort @[5 4 1 3 2])   # -> @[1 2 3 4 5]
(sort @[5 4 1 3 2] >) # -> @[5 4 3 2 1]
felixr