Or simply

  function (s) { return s.replace(/,/g, ""); }



On Jan 24, 1:16 pm, Bhaarat Sharma <[EMAIL PROTECTED]> wrote:
> got it
>
> for anyone ahving same trouble..
>
>         format: function(s) {
>             while (s.indexOf(",")>0)
>                     s = s.substring(0,s.indexOf(","))
> +s.substring(s.indexOf(",")+1,s.length);
>             return s;
>         },
>
> On Jan 24, 12:04 pm, Bhaarat Sharma <[EMAIL PROTECTED]> wrote:
>
> > noticed i had &nbsp; before the data inside the <td> tags.
>
> > but still not able to sort number withcommas. like 1642 as 1,642
>
> > thanks!
>
> > On Jan 24, 11:51 am, Bhaarat Sharma <[EMAIL PROTECTED]> wrote:
>
> > > now i notice that even simple numbers are not sorted correctly.
>
> > > i am displaying these numbers from a scriplet <%=object.displayLong()
> > > %> do i need to be converting this to a string or tableSorter to work
> > > correctly.
>
> > > only data that is in a percentage is being displayed property. like
> > > 00.01% and 00.55%
>
> > > What aM i doing wrong!
>
> > > hopefully someone can come to rescue. I've spent a lot of time in
> > > getting tableSorter to work and now noticing sorting error s:(
>
> > > On Jan 24, 11:36 am, Bhaarat Sharma <[EMAIL PROTECTED]> wrote:
>
> > > > anything?
>
> > > > this data is directly in a th header. <th> 3,567</th> and isnt sorting
> > > > properly.
>
> > > > would appreciate some tips
>
> > > > On Jan 23, 5:20 pm, Bhaarat Sharma <[EMAIL PROTECTED]> wrote:
>
> > > > > Hi
>
> > > > > I have some number which have commos in them.  How can i sort these
> > > > > propertly?
>
> > > > > for example 3567 is as 3,567

Reply via email to