7994fd1d54
git-subtree-dir: third_party/nix
git-subtree-mainline: cf8cd640c1
git-subtree-split: be66c7a6b24e3c3c6157fd37b86c7203d14acf10
8 lines
287 B
Nix
8 lines
287 B
Nix
with builtins;
|
|
|
|
[ (sort lessThan [ 483 249 526 147 42 77 ])
|
|
(sort (x: y: y < x) [ 483 249 526 147 42 77 ])
|
|
(sort lessThan [ "foo" "bar" "xyzzy" "fnord" ])
|
|
(sort (x: y: x.key < y.key)
|
|
[ { key = 1; value = "foo"; } { key = 2; value = "bar"; } { key = 1; value = "fnord"; } ])
|
|
]
|