lib: add naturalSort (move the example IPs to private space)

This commit is contained in:
volth 2018-04-08 13:54:39 +00:00 committed by GitHub
parent 25c2fd80b1
commit 3f8c9106ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -417,8 +417,8 @@ rec {
Example:
naturalSort ["disk11" "disk8" "disk100" "disk9"]
=> ["disk8" "disk9" "disk11" "disk100"]
naturalSort ["46.133.149.113" "5.16.62.13" "54.16.25.114"]
=> ["5.16.62.13" "46.133.149.113" "54.16.25.114"]
naturalSort ["10.46.133.149" "10.5.16.62" "10.54.16.25"]
=> ["10.5.16.62" "10.46.133.149" "10.54.16.25"]
naturalSort ["v0.2" "v0.15" "v0.0.9"]
=> [ "v0.0.9" "v0.2" "v0.15" ]
*/