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

sort the dropdown filters #10

Open
polyester opened this issue Feb 14, 2016 · 0 comments
Open

sort the dropdown filters #10

polyester opened this issue Feb 14, 2016 · 0 comments

Comments

@polyester
Copy link
Member

currently the dropdowns (select2 pattern) come in random order. That's confusing if you have a larger list.

I solved it locally by changing https://github.com/collective/collective.isotope/blob/master/src/collective/isotope/browser/templates/isotope.pt#L72 from

filter_values python:filter_data['values']">
to
filter_values python:sorted(filter_data['values']);">
but am not 'deep enough' into python to know if that could introduce edge cases or other problems. Works for me, though...

I can make PR if wanted.

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

No branches or pull requests

1 participant