Can this be done in perl?Of course! Perl has a built-in sort function that allows you to supply a comparison function so you can specify how you want sorting to be done.
For a more tutorial approach, see Randal's article on sorting, in which he introduces the Schwartzian Transform.perldoc -f sort
In reply to Re: sort by field
by Roy Johnson
in thread sort by field
by tsvi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |