RubyGems Navigation menu

natural_sort 1.0.0

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.

Gemfile:
=

install:
=

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)

Owners:

Pushed by:

GitHub

Authors:

  • Pavel Pravosud

SHA 256 checksum:

=

Provenance:

Total downloads 3,807,238

For this version 104

Version Released:

License:

MIT

Required Ruby Version: >= 3.3

New versions require MFA: true

Version published with MFA: true

Links: