Skip to content

Commit f49ef0f

Browse files
author
Frank Purcell
committed
sort a stops routes via sort_order
1 parent 1095be8 commit f49ef0f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gtfsdb/model/stop.py

+1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ def routes(self):
6969
q = session.query(Route)
7070
f = ((StopTime.stop_id == self.stop_id) & (StopTime.departure_time != ''))
7171
q = q.filter(Route.trips.any(Trip.stop_times.any(f)))
72+
q = q.order_by(Route.route_sort_order)
7273
self._routes = q.all()
7374
return self._routes
7475

0 commit comments

Comments
 (0)