Hope that helps! Greg.@players; # list of names @keys = sort { $data{$half_query}{$stat_query}{$b} #compares on statistic <=> $data{$half_query}{$stat_query}{$a} || $a cmp $b # if they are equal compare on name } @players;
In reply to Re: Sorting Complex Data Scructures
by gt_reynolds
in thread Sorting Complex Data Scructures
by mjn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |