sort by real-time departure
This commit is contained in:
parent
b41a64bd7f
commit
5565e81fb2
1 changed files with 1 additions and 1 deletions
2
index.pl
2
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(
|
||||
|
|
Loading…
Reference in a new issue