cyberhobo / ColumnFilterWidgets

This is an add-on for the DataTables plugin for jQuery that creates filtering widgets based on the data in table columns.
69 stars 34 forks source link

More flexible widget menu sorting #4

Closed cyberhobo closed 12 years ago

cyberhobo commented 12 years ago

Currently terms in the menus are sorted with a simple alpha sort.

It would probably be possible to make the sort terms that consist only of digits numerically, while doing an alpha sort on all other strings. That seems like a reasonable default.

Additionally, we could probably make it an option to supply a sorting function.

This, like other options, would make sense to apply individually to columns, but that's probably a matter for a separate (bigger) issue.