Search: Keep the <option>s order as default in the search results
#778
ThomasLandauer
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
With this HTML:
... when searching for
item, the results may be shown as:To always keep the original order, you need to add
sortField:[{field:'$order'},{field:'$score'}]when initializingTomSelect(see https://tom-select.js.org/docs/#data-searching).I'm suggesting to make this the default, since it's kinda counter-intuitive to get search results not shown in the original order.
Beta Was this translation helpful? Give feedback.
All reactions