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

Cannot control the order of the results

Open boamigo opened this issue 6 years ago • 2 comments

Currently I use a watcher method which does some complicated search and provides array of results in a beautiful order (based on my custom priority). But when results are displayed in the popup - they are ordered in some internal order, which is weird. It would be great to be able to just provide array of objects with my ordering and be able to see them in the same order in popup.

boamigo avatar Oct 20 '18 19:10 boamigo

Does it work by sorting via backend API?

Nowi5 avatar Feb 27 '19 02:02 Nowi5

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! The config option to help with this is disableSort. The component will respect whatever order you provide!

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

mattzollinhofer avatar Mar 11 '20 01:03 mattzollinhofer