I want sort of number _$ (setq lis (list 4 3 6 5 4 1 7 4 3 3 5 1 2)) (4 3 6 5 4 1 7 4 3 3 5 1 2) to (1 1 2 3 3 3 4 4 4 5 5 6 7) And for string I can do it,like this _$ (setq lis1 (list "B" "C" "R" "W" "D" "B" "G" "A" "C")) ("B" "C" "R" "W" "D" "B" "G" "A" "C") _$ (setq sor (acad_strlsort lis1)) ("A" "B" "B" "C" "C" "D" "G" "R" "W")