note
Hofmator
Watch out: [perldoc://sort] sorts normally "in standard string comparison order" which is NOT numerically. In order to sort numerically, you have to use an explicit sort routine.
<p>With your expamle input file, this won't make a difference though, as it sorts the same numerically AND alphabetically.<!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-85506">
<P>-- Hofmator</P>
<p><small><i>Code written by Hofmator and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.</i></small></p>
</div></div>
581276
581276