summaryrefslogtreecommitdiff
path: root/lib/Travel/Status/DE/IRIS.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2017-02-14 23:22:33 +0100
committerDaniel Friesel <derf@finalrewind.org>2017-02-14 23:22:33 +0100
commitcec9c94940c35f95cc9333a981725800dbdd3a04 (patch)
tree3e7e4acdf4d89ec8ae18165a0a9040ec5e1559de /lib/Travel/Status/DE/IRIS.pm
parente37b7d7d4023ec27f2942be3fa4f1cb73531c046 (diff)
sort optimization
Diffstat (limited to 'lib/Travel/Status/DE/IRIS.pm')
-rw-r--r--lib/Travel/Status/DE/IRIS.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Travel/Status/DE/IRIS.pm b/lib/Travel/Status/DE/IRIS.pm
index c805d21..9d7f5ee 100644
--- a/lib/Travel/Status/DE/IRIS.pm
+++ b/lib/Travel/Status/DE/IRIS.pm
@@ -128,7 +128,7 @@ sub new {
} @{ $self->{results} };
@{ $self->{results} }
- = sort { $a->{datetime} <=> $b->{datetime} } @{ $self->{results} };
+ = sort { $a->{epoch} <=> $b->{epoch} } @{ $self->{results} };
# wings (different departures which are coupled as one train) contain
# references to each other. therefore, they must be processed last.