summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillermo Ramos2020-03-06 09:54:21 +0100
committerGuillermo Ramos2020-03-06 09:54:21 +0100
commitc6b6bdf43905f0cfd2e8c487473e3ddba71e534d (patch)
tree3796fe05c7f601337e538c9d57940de99de075c3
parentec36940b1fe95a7c64e17d095a9682e8942a45cb (diff)
downloadbots-c6b6bdf43905f0cfd2e8c487473e3ddba71e534d.tar.gz
Escato: Fix ordering
-rwxr-xr-xescato.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/escato.pl b/escato.pl
index cc6fa70..514b4c9 100755
--- a/escato.pl
+++ b/escato.pl
@@ -56,7 +56,7 @@ sub show_dumps {
push @shures, {username => $shur->{'username'},
data => tg_id_dumps($shur->{'id'})};
}
- foreach my $shur (sort { $b->{data}{month} cmp $a->{data}{month} } @shures) {
+ foreach my $shur (sort { $b->{data}{month} <=> $a->{data}{month} } @shures) {
printf "%d - @%s ha cagado %d veces este mes, y %d al año.\n",
$position++, $shur->{username}, $shur->{data}{month}, $shur->{data}{year};
}