witheve / Eve

Better tools for thought
http://witheve.com
Apache License 2.0
7.16k stars 257 forks source link

Update autocomplete sorting #884

Closed andria-dev closed 6 years ago

andria-dev commented 6 years ago

Autocomplete now has the ability to sort matches by the alphabet as well as the default by length. The way this is done is by adding another value to your autocomplete called sortby. If sortby: "alpha" then it sorts the matches by the alphabet. Not sure if this works 100%; modification is probably needed.

joshuafcole commented 6 years ago

In 0.4, we've resolved this issue by allowing the user to specify the sort on options the same way they do for other UI elements. Whatever value is on the 'sort' attribute of the options will be used to determine their order at render time.