Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Displaying order is by key/value? #32

Open
lu3do opened this issue Jun 24, 2012 · 1 comment
Open

Displaying order is by key/value? #32

lu3do opened this issue Jun 24, 2012 · 1 comment

Comments

@lu3do
Copy link

lu3do commented Jun 24, 2012

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?

@mkelley33
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants