issa-tseng / awesomecomplete

A lightweight autocomplete plugin for jQuery. Autocomplete that doesn't suck — I think.
http://dontexplain.com/2009/08/jquery-plugin-lautocomplete/
52 stars 7 forks source link

Customizable sorting function #5

Closed mackuba closed 14 years ago

mackuba commented 14 years ago

I've added a way to override the sorting function to change the ordering of results, because I wanted to put the entries that start with the term at the beginning (e.g. searching for 'an' puts 'ant' before 'banana').

issa-tseng commented 14 years ago

Done. Thanks!

Actually after you left that comment I was going to change the default sort to term-start first, since that makes sense, but this works too.