mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-12-25 13:36:47 +02:00
9 lines
287 B
Nix
9 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"; } ])
|
||
|
]
|