Picking out the sort from the tangle of unformatted code I see:
my @temp = reverse sort { $a->[0] cmp $a->[0]} @results;
If you compare $a->[0] against $a->[0], it will always be equal, so sort will do nothing. Is that the problem you are experiencing?
Try replacing one of the $a with $b and see what difference it makes.
In reply to Re: Column Sort on Array
by BrowserUk
in thread Column Sort on Array
by drodinthe559
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |