I have an array of hashes:
a=[{ \'foo\'=>0,\'bar\'=>1 }, { \'foo\'=>0,\'bar\'=>2 }, ... ]
I want to sort the array first
comparison of Array with Array failed
This means (at least in my case) that the types of array elements are different. When I made sure all array items are of the same time (Integer, for example), sorting started to work.
Integer