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 sorting for lowercase values #47

Merged
merged 2 commits into from
Feb 9, 2023

Conversation

jonahsnider
Copy link
Contributor

Update the smartSort() function to properly compare lowercase values.

Before:
before

After:
after

@jwbonner
Copy link
Member

jwbonner commented Feb 9, 2023

Good to know that there's a built-in function for this type of sorting. Since "smartSort" was only used in two places I just switched them to use "localeCompare" directly.

@jwbonner jwbonner merged commit 68765e4 into Mechanical-Advantage:main Feb 9, 2023
@jonahsnider jonahsnider deleted the fix-sorting branch February 9, 2023 05:15
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.

2 participants