Description:
Returns a list of indices according to a sort function.
The indexes of items in <list> (from 0 to length-1) will be sorted according to <test>.
<test> may be a function or function name (symbol) for a binary comparison function.
Ex. (posn-order '(4 5 6 7 8) '<) => (0 1 2 3 4)
Ex. (posn-order '(4 5 6 7 8) '>) => (4 3 2 1 0)
|