Skip to content

Conversation

@busbyk
Copy link
Collaborator

@busbyk busbyk commented Jan 15, 2026

Description

Previously, states were sorted alphabetically which placed INTL between IL (Illinois) and IN (Indiana). This change uses a custom sort comparator to ensure INTL always appears last while maintaining alphabetical order for all other states.

Screenshots / Demo video

Check out: https://international-to-bottom.preview.avy-fx.org/embeds/providers

Previously, states were sorted alphabetically which placed INTL between
IL (Illinois) and IN (Indiana). This change uses a custom sort comparator
to ensure INTL always appears last while maintaining alphabetical order
for all other states.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@github-actions
Copy link

Preview deployment: https://international-to-bottom.preview.avy-fx.org

@busbyk busbyk marked this pull request as ready for review January 16, 2026 00:10
@busbyk busbyk requested review from rchlfryn and rustynwac January 16, 2026 00:10
@busbyk busbyk self-assigned this Jan 16, 2026
Copy link
Collaborator

@rchlfryn rchlfryn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG

Bonus points: Can you update my mistake https://github.com/NWACus/web/blob/main/src/utilities/queries/getCoursesStates.ts#L35-L39 to use the sort function as well? At first I thought findByIndex was more efficient but I was wrong since there are multiple array mutations.

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.

3 participants