summaryrefslogtreecommitdiff
path: root/index.pl
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-11-08 07:38:37 +0100
committerDaniel Friesel <derf@finalrewind.org>2018-11-08 07:38:37 +0100
commit5565e81fb23cea7d660f404fdbfc7bc90b8b9b4f (patch)
treea250239f1063a124e29a456f5091798077db292d /index.pl
parentb41a64bd7f246bdf3651111d167167e61af4d0c9 (diff)
sort by real-time departure
Diffstat (limited to 'index.pl')
-rwxr-xr-xindex.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.pl b/index.pl
index 2bce4eb..176f4f5 100755
--- a/index.pl
+++ b/index.pl
@@ -771,7 +771,7 @@ get '/*station' => sub {
@results = map { $_->[0] }
sort { $b->[1] <=> $a->[1] }
- map { [ $_, $_->sched_departure->epoch // $_->departure->epoch ] }
+ map { [ $_, $_->departure->epoch // $_->sched_departure->epoch ] }
@results;
$self->render(