Programming-Idioms

History of Idiom 28 > diff from v45 to v46

Edit summary for version 46 :
New Lisp implementation by user [foobar]

Version 45

2019-07-03, 16:05:29

Version 46

2019-09-26, 16:02:03

Idiom #28 Sort by a property

Sort elements of array-like collection items in ascending order of x.p, where p is a field of the type Item of the objects in items.

Idiom #28 Sort by a property

Sort elements of array-like collection items in ascending order of x.p, where p is a field of the type Item of the objects in items.

Code
(sort #'< items :key #'p)