On Tue, Jul 17, 2007 at 11:01:55AM -0400, Rick Pasotto wrote: > > On Tue, Jul 17, 2007 at 03:04:59PM +0200, Christian Bach wrote: > > After another late night, fixing a few bugs, the code is finally ready for > > it's first beta release. > > > > The main new features include: > > * Multi-column sorting > > * In-line support for setting options done via the class attribute on the TH > > elements. > > * The plugin has been re-written from scratch. > > * Support for rowspan and colspan on TH elements. > > * New widget support, more information in the docs. > > > > Hopefully this will take care of all the issues that was related to > > the 1.xrelease. > > > > The new 2.0 release can be found here: > > http://lovepeacenukes.com/tablesorter/2.0/ > > Looks promising but I'm having a little problem with numeric sorting. > > Here's my invocation and the table header. > > $(function() { $("#listclubs").tablesorter(); }); > > <thead><tr> > <th class="{sorter:'integer'}">ID#</th> > <th>Club Name</th> > <th>Area</th> > <th>Type</th> > <th>Charter</th> > </tr></thead> > > When the page first appears it is sorted the way I wrote it but if I > click on the first column it does an alpha sort ('1055512' comes before > '1312' and '1420'). > > Also, is it possible to apply a style to the table based on which column > is sorted? > > And one more thing. I'm using cluetip.js on that first column and it no > longer works.
Immediately after sending the above I think I realized what the problem is. Each of the numeric values in that first column is wrapped in <a></a> and you're probably sorting on that. Do I need to write a parser? If so, what might it be? -- "There are 2 fools in every market: one asks too little, one asks too much." -- Russian proverb Rick Pasotto [EMAIL PROTECTED] http://www.niof.net