With your expamle input file, this won't make a difference though, as it sorts the same numerically AND alphabetically.
-- Hofmator
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.
In reply to Re: Sorting a File which contains numbers
by Hofmator
in thread Sorting a File which contains numbers
by SireeshaYalamanchili
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |