note
salva
<blockquote><i>Better yet, just use the Sort::Naturally module from CPAN</i></blockquote>
<p>Sort::Naturally does not handle numbers with decimals correctly. For instance, <c>nsort '1.10', '1.31', '1.4'</c> returns <c>1.4 1.10 1.31</c>.
<p>But you can use [metamod://Sort::Key::Natural] instead which provides a set of functions for sorting strings embedding numbers with decimals:
<c>
use Sort::Key::Natural qw(natwfsort);
my @sorted = natwfsort @array;
</c>
<p><b>Update</b>: Though, taking into account that the data in the OP says <c>Patch_</c>, maybe those numbers are actually version numbers and then the part after the decimal dot may be better sorted as an independent integer, which is what a regular natural sort does...
1207205
1207207