Ascending sort.
This commit is contained in:
parent
f75a118156
commit
0e19c374f7
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ while (<>) {
|
||||||
$data{$url}{__TOTAL__}++;
|
$data{$url}{__TOTAL__}++;
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach my $url (sort { $data{$a}{__TOTAL__} <=> $data{$b}{__TOTAL__}}
|
foreach my $url (sort { $data{$b}{__TOTAL__} <=> $data{$a}{__TOTAL__}}
|
||||||
keys %data) {
|
keys %data) {
|
||||||
print "$url: $data{$url}{__TOTAL__}\n";
|
print "$url: $data{$url}{__TOTAL__}\n";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue