It is a bad idea to use "$a" and "$b" as variable names, especially in a program that does sorting.
Refer to the FAQ "How do I sort an array by (anything)?" for an alternate method. (Your approach is simpler and for small data sets it probably does not matter which you use.)
In reply to Re: Sorting an array of hash references of array references
by BillKSmith
in thread Sorting an array of hash references of array references
by nikmit
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |