Charles Capps
2007-02-02 18:46:29 UTC
Either my Google-fu is weak, or the TableSorter plugin appears to be the
only game in town for table sorting in jQuery-land:
http://motherrussia.polyester.se/jquery-plugins/tablesorter/
Now, don't get me wrong, it works perfectly fine (when not trying to
stripe a 1600 row table), but it lacks a feature that I need for my
particular data set - multi-column sorting, or at a minimum, using
another column as a tie-breaker. The data I'm dealing with is half
zeros, and half non-zeros, and users have expressed annoyance that all
the rows with zeros end up in an unuseful order when they sort by that
column.
I've determined that it would be nigh-impossible to wedge in any sort of
consideration of multiple columns in the existing plugin. It puts
together all the data from one column before throwing it at the sort
routine, and the sort routine itself is utterly unaware that there's
anything outside of the current data set to look at, rightfully so.
So before I set out to try and solve the problem (or switch back to
server-side sorting, eww), does anyone already have a table sorting
plugin for jQuery that can handle multiple column sorting, or that can
use a second column as a tie-breaker?
Thanks!
only game in town for table sorting in jQuery-land:
http://motherrussia.polyester.se/jquery-plugins/tablesorter/
Now, don't get me wrong, it works perfectly fine (when not trying to
stripe a 1600 row table), but it lacks a feature that I need for my
particular data set - multi-column sorting, or at a minimum, using
another column as a tie-breaker. The data I'm dealing with is half
zeros, and half non-zeros, and users have expressed annoyance that all
the rows with zeros end up in an unuseful order when they sort by that
column.
I've determined that it would be nigh-impossible to wedge in any sort of
consideration of multiple columns in the existing plugin. It puts
together all the data from one column before throwing it at the sort
routine, and the sort routine itself is utterly unaware that there's
anything outside of the current data set to look at, rightfully so.
So before I set out to try and solve the problem (or switch back to
server-side sorting, eww), does anyone already have a table sorting
plugin for jQuery that can handle multiple column sorting, or that can
use a second column as a tie-breaker?
Thanks!