package numeric_string
A comparison function for strings that sorts numeric fragments of strings according to their numeric value, so that e.g. "abc2" < "abc10".
Install
Authors
Maintainers
Sources
numeric_string-v0.16.0.tar.gz
sha256=b4a43ada27dd4f8c399a7222637e23897f71bbc70c83ecfa258212cafc64d16b
Description
A comparison function (and assorted sets / maps / etc.) for strings that sorts numeric fragments of strings according to their numeric value, so that e.g. "abc2" < "abc10".
People often call this "natural sort", and link to this:
https://blog.codinghorror.com/sorting-for-humans-natural-sort-order/
which links to a few other posts about the matter. Sometimes it's called "alphanum sort" or "human sort" or something. "Numeric string compare" is chosen as the name that gets closest to expressing what it actually does (to me, "natural sort" sounds like something that might include a different treatment of case, special handling of whitespace or punctuation, etc.)
Published: 14 Jun 2023
Dependencies (4)
Dev Dependencies
Used by (1)
Conflicts
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page