sergiodlopes / jquery-flexdatalist

Flexible input autocomplete/datalist plugin for jQuery
http://projects.sergiodinislopes.pt/flexdatalist/
MIT License
365 stars 84 forks source link

Search Results grouped based on first letter #146

Open geodadd opened 6 years ago

geodadd commented 6 years ago

This plugin has been very useful and I think you've done a great job. I was wondering if it is possible to group results based on the first letter of the result. This is because I am getting data from a remote source (https://huxley.apphb.com/crs) which is a JSON file with a list of train stations and crs code and there is no other property to sort the results. You will be doing me a huge favour if you could help out. Thanks

sergiodlopes commented 6 years ago

Hi,

Thanks. :)

If I understand it correctly, think you might need to pre-process the JSON data before passing it to flexdatalist. It doesn't allow data manipulation, only search and presentation of given data.

Cheers!