Commit 5565e81f authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

sort by real-time departure

parent b41a64bd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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(