twitter / typeahead.js

typeahead.js is a fast and fully-featured autocomplete library
http://twitter.github.io/typeahead.js/
MIT License
16.52k stars 3.21k forks source link

From 10.5 to 11.0 changes the order of results #1787

Open f-liva opened 4 years ago

f-liva commented 4 years ago

Upgrading from version 10.5 to 11.0, the order of the listed Typehead results changes.

E.g. with "London Pass" search key

Version 10.5 https://cdn.jsdelivr.net/npm/typeahead.js@0.10.5/dist/typeahead.bundle.min.js

Annotazione 2020-03-09 111234

Version 11.0 https://cdn.jsdelivr.net/npm/typeahead.js@0.11.0/dist/typeahead.bundle.min.js

Annotazione 2020-03-09 111315

I note that with version 11, the results are sorted in alphabetical order instead of the order defined in the data index (attached), that would be the right behaviour.

data.txt