sort by real-time departure

This commit is contained in:
Daniel Friesel 2018-11-08 07:38:37 +01:00
parent b41a64bd7f
commit 5565e81fb2

View file

@ -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(