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 June 14, 2026 (10.5 KB)
  2. 0.3.0 September 27, 2018 (6.5 KB)
  3. 0.2.0 November 14, 2016 (6 KB)
  4. 0.1.0 January 03, 2016 (6 KB)

Pushed by

GitHub

SHA 256 checksum

Provenance