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 string filter options based on input filter #374

Merged
merged 2 commits into from
Jul 12, 2020

Conversation

cmfcmf
Copy link
Member

@cmfcmf cmfcmf commented Jun 25, 2020

@calculuschild brought up a good point in #238 (comment): We should sort the filter options when using the filter bar of an individual field. I used the match-sorter library that intelligently, but deterministicly, sorts by best match. Incidentally, this causes the Dungeon Magazine entries to sort alphabetically.
Peek 2020-06-25 22-54

@cmfcmf cmfcmf temporarily deployed to adventurelookup-pr-374 June 25, 2020 20:59 Inactive
@cmfcmf cmfcmf mentioned this pull request Jun 25, 2020
@cmfcmf cmfcmf temporarily deployed to adventurelookup-pr-374 June 28, 2020 20:34 Inactive
@cmfcmf cmfcmf merged commit b5a2791 into AdventureLookup:dev Jul 12, 2020
@cmfcmf cmfcmf deleted the sort-filter-results branch July 12, 2020 10:02
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