ajax-chosen
ajax-chosen copied to clipboard
Displaying order is by key/value?
When a user inputs a term I return the results order by relevance For example a ajax search returns the following json string:
{"10419":"Ajax","861":"Jeroen Slop","6244":"Barbara Stork","2109":"Antje Dammer","2295":"Ivo Trijbits","3885":"Marcus Keane","2172":"Alfredo Arroyo","3311":"Pascale Vos","5183":"Barbara Traanberg","277":"Cindy Snabel"}
But in the chosen select the results are ordered by the key/value of the option.
e.g.
Cindy Snabel Jeroen Slop Antje Dammer etc...
is there anyway around this? am I the only one having this problem?
I'm enjoying using ajax-chosen, so thank you! I had the same problem as johnfrederik. Thanks for the commit johnfrederik!