A comparator for natural sorting of strings. Internal digits compare as integers.
A comparator for natural sorting of strings. Internal digits compare as integers.
(natural-compare a b)
Compares two strings using natural, as opposed to lexical, sorting.
Compares two strings using natural, as opposed to lexical, sorting.
cljdoc builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |