Vue-multiselect: [Question] Change result ordering?

Created on 19 Oct 2017  路  1Comment  路  Source: shentao/vue-multiselect

Hi,

Is it possible to change the result ordering?

e.g Currently its alphabetically so if you had typed in "bo" you get the following

which_parts_do_you_require_____1st_choice_spares

However is it possible to change this? to return by relevancy?

e.g If you search "bo" it would show all of the results that start with "bo" rather than alphabetically?

Does this make sense - sorry hard to explain.

Thanks

question

Most helpful comment

Hey! I believe this should be possible if you disable the internalSearch prop and filter the results yourself using the @search event. If the options array is sorted by relevance, this is how it will show inside the multiselect.
Please see the async search in the docs for an example.

>All comments

Hey! I believe this should be possible if you disable the internalSearch prop and filter the results yourself using the @search event. If the options array is sorted by relevance, this is how it will show inside the multiselect.
Please see the async search in the docs for an example.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wujekbogdan picture wujekbogdan  路  4Comments

icebob picture icebob  路  4Comments

alexhyriavets picture alexhyriavets  路  3Comments

volkanciloglu picture volkanciloglu  路  3Comments

PrimozRome picture PrimozRome  路  3Comments