tripkit-android / com.skedgo.tripkit.routing / TripGroupComparators / DEPARTURE_COMPARATOR_CHAIN

DEPARTURE_COMPARATOR_CHAIN

static val DEPARTURE_COMPARATOR_CHAIN:Comparator<TripGroup!>!

To sort routes by arrive-by query.

Q: Why reverse departure time? A: "If it's an arrive-by query and you sort by time, you don't care when the trips arrive as you told them when they should arrive. What matters is when they leave. Trips that leave later (while arriving before the time you selected) are better. Hence: sort descending by arrival time." (Adrian said)

See Also <a href="https://redmine.buzzhives.com/issues/3967">Discussion</a&gt;