Thank you for the update, Christian. Seeing the "official" solution have two column sorting would be beautiful, as the rest of the functionality is well done.
Christian Bach wrote: > Hi, > > Actually i have been playing around with two column sorting a while > back, the design of the plugin is in fact a bit stupid since it builds > strictly around one column sorting (it was originally designed just for > speed and the fun of it all). The built in sorting of Arrays in > javascript is a bit let's just call it limited. A two column sorting > function basically just check if a condition is true / false, if false > it would need to send the current array to the next sorting function. I > will see if i have the time and patience to introduce two column sorting > in a upcoming release. > > Best regards > Christian Bach > > On 2/2/07, *Charles Capps* <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > 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! > > > _______________________________________________ > jQuery mailing list > discuss@jquery.com <mailto:discuss@jquery.com> > http://jquery.com/discuss/ <http://jquery.com/discuss/> > > > > ------------------------------------------------------------------------ > > _______________________________________________ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/