As another piece in your quest, see How do I sort an array by (anything)?.
Maybe also consider reading and working through Modern Perl, which also is available for online reading.
In reply to Re^5: Need to sort comma delimited, double quoted file
by Corion
in thread Need to sort comma delimited, double quoted file
by CSharma
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |