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