Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix route sorting comparator #814

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

amy-corson-ibigroup
Copy link
Contributor

OTP1 used to return a route sortOrder value of -999 if it was not defined by the agency. But OTP2 returns it as null. All our sortOrder route sorting was assuming we'd see default values of -999 and as a result it does not work. Rewrote these comparators with the new null value in mind.

This was also really annoying to debug so I made a route sort comparator story with checkboxes so users can see how each sort comparator is impacting the results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant