in reply to sorting
So if the array was an array of hashes and you wanted to sort by the "time" fields, it would look a lot like this:@array = sort { $a <=> $b } @array;
..or to sort in reverse order...@array = sort { $a->{time} <=> $b->{time} } @array;
..or to sort as strings (non case-sensitive)...@array = sort { $b->{time} <=> $a->{time} } @array;
Hopefully this will give you enough information to figure it out.@array = sort { uc $a->{time} cmp uc $b->{time} } @array;
|
|---|