Commit 341665c7 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

sort journeys by departure time

parent df34c58c
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -1067,6 +1067,13 @@ qq{select * from pending_mails where email = ? and num_tries > 1;}
				} @travels;
			}

         # user_actions are sorted by action_time. As users are allowed to check
         # into trains in arbitrary order, action_time does not always
         # correspond to departure/arrival time, so we ensure a proper sort
         # order here.
			@travels
			  = sort { $b->{rt_departure} <=> $a->{rt_departure} } @travels;

			return @travels;
		}
	);