- sort-keys elt< collectionprocedure
Returns the keys of the collection in a new vector, ordered so that their elements are ascending under elt<, an ordinary two-argument "less than" on elements. Keys of equal elements keep their original order. For a list or vector this is the permutation that sorts it. Takes O(n log n) time for any collection, lists included.
> (sort-keys < '(30 20 40 10)) #(3 1 0 2)