[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SORT



Is it still true that SORT can't sort number arrays?  This seems losing.
Also to be useful it seems to be that SORT should take an optional third
argument which is the exchange operator.  E.g. (SORT 'A '> (FUNCTION
(LAMBDA (X Y) (STORE (A X) (PROG2 0 (A Y) (STORE (A Y) (A X))))))) would
be equivalent to (SORT 'A '>).  This would allow you to sort two or three
arrays on the on the ordering of just one of the arrays.  Maybe you can
think of a better mechansim for this.