vue-bootstrap-typeahead icon indicating copy to clipboard operation
vue-bootstrap-typeahead copied to clipboard

Sort Suggestions

Open ddavisfw opened this issue 5 years ago • 2 comments

Even if I sort the data source, the suggestions are not displayed in alphabetical order.

Example Array ['Another Organization', 'Cool Organization']

Typing "Org" will display Cool Organization first. Is there any way to force the suggestions to display in alphabetical order? In this scenario, you would want to view the list alphabetically rather than relying on a higher fuzzy search score.

ddavisfw avatar Dec 17 '19 14:12 ddavisfw

I agree this is an issue!

Unfortunately this repo isn't maintained any longer, but I'm actively maintaining a fork here: https://github.com/mattzollinhofer/vue-typeahead-bootstrap

I believe I have it fixed the sorting issue in the most recent release, give it a try!

https://www.npmjs.com/package/vue-typeahead-bootstrap

mattzollinhofer avatar Mar 11 '20 01:03 mattzollinhofer

I should note that the config option to help with this is disableSort. So you can't tell the component to alphabetize for you, but the component can respect whatever order you provide.

mattzollinhofer avatar Mar 11 '20 01:03 mattzollinhofer