summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Travel/Status/DE/HAFAS.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Travel/Status/DE/HAFAS.pm b/lib/Travel/Status/DE/HAFAS.pm
index 6de7f35..a20d157 100644
--- a/lib/Travel/Status/DE/HAFAS.pm
+++ b/lib/Travel/Status/DE/HAFAS.pm
@@ -1111,7 +1111,7 @@ sub station {
}
}
- my @prefcounts = sort { $b->[0] <=> $a->[0] }
+ my @prefcounts = sort { $b->[1] <=> $a->[1] }
map { [ $_, $prefc_by_loc{$_} ] } keys %prefc_by_loc;
if ( not @prefcounts ) {