ajax-chosen icon indicating copy to clipboard operation
ajax-chosen copied to clipboard

Displaying order is by key/value?

Open lu3do opened this issue 12 years ago • 1 comments

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?

lu3do avatar Jun 24 '12 00:06 lu3do

I'm enjoying using ajax-chosen, so thank you! I had the same problem as johnfrederik. Thanks for the commit johnfrederik!

mkelley33 avatar Sep 11 '12 19:09 mkelley33