Skip to content
This repository has been archived by the owner on Jul 26, 2022. It is now read-only.

Sort Suggestions #69

Open
ddavisfw opened this issue Dec 17, 2019 · 2 comments
Open

Sort Suggestions #69

ddavisfw opened this issue Dec 17, 2019 · 2 comments

Comments

@ddavisfw
Copy link

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.

@mattzollinhofer
Copy link

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
Copy link

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.

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

No branches or pull requests

2 participants