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

2 lines
129 B
Common Lisp

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