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

Sort stations in combo box alphabetically #139

Merged
merged 3 commits into from
Oct 25, 2024

Conversation

morascode
Copy link
Contributor

This PR adds a toSortedStationsAlphabetically function to the frontend/src/app/lib/utils.ts file.
toSortedStationsAlphabetically is called in the fetchStations callback in frontend/src/app/page.tsx.

This PR solves issue #136.

@bambooch bambooch merged commit ce75cb9 into zeforgezenica:main Oct 25, 2024
1 check passed
@bambooch
Copy link
Collaborator

hi @morascode great work! I've merged it with a small change to always keep the root station on top since it makes the UX a bit better IMO

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

Successfully merging this pull request may close these issues.

2 participants