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

chocochaii picture chocochaii  路  15Comments

yk1711 picture yk1711  路  15Comments

raphcadiz picture raphcadiz  路  44Comments

shentao picture shentao  路  21Comments

z1haze picture z1haze  路  24Comments