Hi,

apparently Tablesorter can't handle zeros in sorted table.  Without
any 0 value your code works fine.

check out this thread:

http://groups.google.com/group/jquery-dev/browse_thread/thread/d8e75a30f7ca3067

and this site:

http://beckelman.net/post/2008/10/24/Checkbox-Parser-and-Bug-Fix-for-jQuery-TableSorter-Plugin.aspx


On 14 Lis, 21:28, jarun111 <jarun...@gmail.com> wrote:
> Hi,
> I tried removing the space. Does not work as well :<
>
> Does tablesorter script have issues with this particular use case? I see the
> same thing working on the example page though. Not sure. How do I write the
> custom parser for this one? Do u have any sample for this?
>
> Thanks
>
>
>
>
>
> MorningZ wrote:
>
> > it thinks they are characters because you seemingly have spaces after
> > the numbers themselves.... you'll either
> > 1) need to trim off the whitespace in your html
> > 2) write a custom parser to do this
>
> > On Nov 14, 12:48 am, jarun111 <jarun...@gmail.com> wrote:
> >> Hi,
> >> I am trying to sort a table using jquery table sorter and the no column
> >> that
> >> I need to sort is not properly sorted. Can you please help on this. They
> >> are
> >> getting sorted by characters.
>
> >> Code below:
>
> >> <HTML>
> >> <HEAD>
>
> >> <script type="text/javascript"
> >> src="http://tablesorter.com/jquery-latest.js";></script>
>
> >>         <script type="text/javascript"
> >> src="http://tablesorter.com/jquery.tablesorter.js";></script>
> >>         <script type="text/javascript"
> >> src="http://tablesorter.com/addons/pager/jquery.tablesorter.pager.js";></script>
>
> >>         <script type="text/javascript"
> >> src="http://tablesorter.com/docs/js/chili/chili-1.8b.js";></script>
> >>         <script type="text/javascript"
> >> src="http://tablesorter.com/docs/js/docs.js";></script>
> >>         <script type="text/javascript"
> >> src="http://tablesorter.com/docs/js/examples.js";></script>
>
> >> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"
> >> />
> >> </head>
> >> <body>
>
> >> <table id='myTable'>
> >> <thead>
> >> <tr><th>Test Name</th><th>No</th></tr>
> >> </thead>
>
> >> <tbody>
>
> >> <tr><td>AUDITTRAIL.UPDATE.PLTOPL.P2</td><td>0  </td></tr>
> >> <tr><td>AUDITTRAIL.UPDATE.PLTOPL.P3</td><td>4  </td></tr>
> >> <tr><td>AUDITTRAIL.UPDATE.PLTOPL.P4</td><td>0 </td></tr>
> >> <tr><td>AUDITTRAIL.UPDATE.ZTSTOPL.*</td><td>0  </td></tr>
> >> <tr><td>AUDITTRAIL.UPDATE.ZTSTOPL.P1</td><td>41</td></tr>
> >> <tr><td>AUDITTRAIL.UPDATE.ZTSTOPL.P2</td><td>0 </td></tr>
> >> <tr><td>AUDITTRAIL.UPDATE.ZTSTOPL.P3</td><td>0 </td></tr>
> >> <tr><td>AUDITTRAIL.UPDATE.ZTSTOPL.P4</td><td>0 </td></tr>
> >> <tr><td>EQMPRIMO.PD.PD.T1</td><td>5            </td></tr>
> >> <tr><td>EQPRIMO.PDRESP.PRH.T1</td><td>52       </td></tr>
>
> >> </tbody>
> >> </table>
> >> <script language="javascript">
>
> >> $("#myTable").tablesorter();</script>
> >> </body>
> >> </html>
>
> >> Thanks
> >> --
> >> View this message in
> >> context:http://old.nabble.com/Please-help---Table-sorter-does-not-seem-to-wor...
> >> Sent from the jQuery General Discussion mailing list archive at
> >> Nabble.com.
>
> --
> View this message in 
> context:http://old.nabble.com/Please-help---Table-sorter-does-not-seem-to-wor...
> Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to