Natural-sort ordering for Ruby: split strings into digit and non-digit runs and compare numerically, so "a2" sorts before "a10". Plugs into Ruby's own sort methods, with optional Array/Hash/Set refinements and an opt-in NaturalSort() helper.

Required Ruby Version

>= 3.3

Authors

Pavel Pravosud

Versions

  1. 1.0.0
    1. source

      1. 1.0.0 source June 14, 2026 (10.5 KB)
  2. 0.3.0
    1. source

      1. 0.3.0 source September 27, 2018 (6.5 KB)
  3. 0.2.0
    1. source

      1. 0.2.0 source November 14, 2016 (6 KB)
  4. 0.1.0
    1. source

      1. 0.1.0 source January 03, 2016 (6 KB)

Pushed by

GitHub

SHA 256 checksum

Provenance