acet-list-isort
(acet-list-isort lst
index)
Returns the list lst as sorted by
index.
lst input list is
a "list of sub-lists", index
specifies the entry in each sub-list, which is
used as sorting value.
Examples :
(setq lst (list '(1 2 5) '(2 1 4) '(3 4 3) '(4
3 2) '(5 5 1)))
(acet-list-isort lst 0) returns : ((1 2
5) (2 1 4) (3 4 3) (4 3 2) (5 5 1))
(acet-list-isort lst 1) returns : ((2 1
4) (1 2 5) (4 3 2) (3 4 3) (5 5 1))
(acet-list-isort lst 2) returns : ((5 5
1) (4 3 2) (3 4 3) (2 1 4) (1 2 5))
© Bricsys NV. All rights reserved. |