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

Filter widget: Values for filter-select dropdown should be sortable #103

Closed
riker09 opened this issue Jul 9, 2012 · 4 comments
Closed

Comments

@riker09
Copy link
Contributor

riker09 commented Jul 9, 2012

The values that get extracted from the table rows and grouped together in the option list should be sorted by default. I'm guessing a natural sort makes sense. This should be another headercolum option (see #102).

If my table contains a column with these values:

  • ABCD 1
  • ABCD 2
  • ABCD 2
  • ABCD 3
  • ABCD 1
  • ABCD 12
  • ABCD 12
  • ABCD 24

and the column has the filter-select option set the options of the drop down should be sorted with a natural sort by default:

  • ABCD 1
  • ABCD 2
  • ABCD 3
  • ABCD 12
  • ABCD 24
@Mottie
Copy link
Owner

Mottie commented Jul 9, 2012

Hmm, in order to use the natural sort in a widget, I think I'm going to have to make the sortText function public. Not that big of a deal I guess.

@riker09
Copy link
Contributor Author

riker09 commented Sep 27, 2012

I guess you're busy working on version 3 or are there any news on this issue?

@Mottie
Copy link
Owner

Mottie commented Sep 27, 2012

I'm sorry... life has been hectic around here. I haven't had a chance to work on the plugin for a while. But good news, it's pretty much all done. I'm just working on the documentation now. I hope to have version 2.4 posted before this weekend.

@Mottie
Copy link
Owner

Mottie commented Sep 27, 2012

Ok, version 2.4 is now live. It now does a natural sort on the select options.

@Mottie Mottie closed this as completed Sep 27, 2012
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

2 participants