note
indigo
<code>@a = sort @b;</code><br><br>
will sort lexigraphically.<br><br>
<code>@a = sort { $a <=> $b } @b;</code><br><br>
will sort numerically.<br><br>
<code>@a = sort &naturally @b;</code><br><br>
will sort "naturally", where naturally() is a compare routine of your own devising.
<br><br>
[perldoc://sort|perldoc -f sort] for more info.
68185
68185