RosettaCodeData/Task/Sort-an-array-of-composite-structures/Common-Lisp/sort-an-array-of-composite-structures-3.lisp
2023-07-01 13:44:08 -04: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))