git.iko.soy/typeable/nixpkgs
on master help sign in
lib: add naturalSort (move the example IPs to private space)
commit3f8c9106ea7cbe32cb9a95c6e952dca90387a0ca authorvolth <volth@webmaster.ms> dateSun 8 Apr 2018, 13:54 (9 years ago) parent25c2fd8
1 file changed+2−2
lib/lists.nix+2−2
lib/lists.nix+2−2
@@ -417,8 +417,8 @@ rec {
417417 Example:
418418 naturalSort ["disk11" "disk8" "disk100" "disk9"]
419419 => ["disk8" "disk9" "disk11" "disk100"]
420− naturalSort ["46.133.149.113" "5.16.62.13" "54.16.25.114"]
421− => ["5.16.62.13" "46.133.149.113" "54.16.25.114"]
420+ naturalSort ["10.46.133.149" "10.5.16.62" "10.54.16.25"]
421+ => ["10.5.16.62" "10.46.133.149" "10.54.16.25"]
422422 naturalSort ["v0.2" "v0.15" "v0.0.9"]
423423 => [ "v0.0.9" "v0.2" "v0.15" ]
424424 */