this repo has no description
1opam-version: "2.0"
2maintainer: "Jane Street developers"
3authors: ["Jane Street Group, LLC"]
4homepage: "https://github.com/janestreet/numeric_string"
5bug-reports: "https://github.com/janestreet/numeric_string/issues"
6dev-repo: "git+https://github.com/janestreet/numeric_string.git"
7doc: "https://ocaml.janestreet.com/ocaml-core/latest/doc/numeric_string/index.html"
8license: "MIT"
9build: [
10 ["dune" "build" "-p" name "-j" jobs]
11]
12depends: [
13 "ocaml" {>= "4.14.0"}
14 "base" {>= "v0.16" & < "v0.17"}
15 "ppx_jane" {>= "v0.16" & < "v0.17"}
16 "dune" {>= "2.0.0"}
17]
18synopsis: "A comparison function for strings that sorts numeric fragments of strings according to their numeric value, so that e.g. \"abc2\" < \"abc10\"."
19description: "
20A comparison function (and assorted sets / maps / etc.) for strings
21that sorts numeric fragments of strings according to their numeric
22value, so that e.g. \"abc2\" < \"abc10\".
23
24People often call this \"natural sort\", and link to this:
25
26https://blog.codinghorror.com/sorting-for-humans-natural-sort-order/
27
28which links to a few other posts about the matter. Sometimes it's
29called \"alphanum sort\" or \"human sort\" or something. \"Numeric string
30compare\" is chosen as the name that gets closest to expressing what it
31actually does (to me, \"natural sort\" sounds like something that might
32include a different treatment of case, special handling of whitespace
33or punctuation, etc.)
34"
35url {
36src: "https://ocaml.janestreet.com/ocaml-core/v0.16/files/numeric_string-v0.16.0.tar.gz"
37checksum: "sha256=b4a43ada27dd4f8c399a7222637e23897f71bbc70c83ecfa258212cafc64d16b"
38}