RosettaCodeData/Task/Sort-an-array-of-composite-structures/Common-Lisp/sort-an-array-of-composite-structures-2.lisp
Ingy döt Net 68f8f3e56b all tasks
2013-04-11 01:07:29 -07:00

2 lines
139 B
Common Lisp

CL-USER> (sort (copy-list *test-scores*) #'string-lessp :key #'first)
(("california" 76.2) ("new york" 88.2) ("ohio" 87.8) ("texas" 68.9))