returning a list of symbols after sorting...not values

2017-02-05 Thread dean
"by".found it :)

: (let (A 1 B 2 C 3) (by val sort '(C A B)))
-> (A B C)


returning a list of symbols after sorting...not values

2017-02-05 Thread dean
I'm sure I've seen an example of this but can't find it.
e.g.
( let (A 1 B 3 C 2)
 (let L1 (list A B C)
 (let L2 (sort L1. but getting A B & C in order not 1 2 3

Any help much appreciated