in reply to Sorting an array of hash references of array references

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.)

Bill
  • Comment on Re: Sorting an array of hash references of array references