Message Thread: |
View All MessagesBack to WebFX |

My numbers are always left-aligned so that character sorting can select them properly. The problem is that character sorting ignores leading spaces. Why sortable table ignores leading spaces ? I think this is a bug ! It it possible to change the scipt so that character sorting does not ignore leading spaces like sorting in the the dhtml grid from dhtmlgrid.sourceforge.net From: Erik ArvidssonSent: June 12, 2003Subject: Re:SorTable - bugs with minus (-) values...Did you set the sort type to Number for that column? The behavior you are describing seems to be the case sensitive string search. erik -------------------------------------------------------- Hi, Love the sortable script but in my project I am working with many minus values aswell as plus values. Whats happening though, is I have values like -3.63, -1.34, -12.45, 20.45 etc. Now, if I have a column in which ALL numbers have 2 digits infront of the decimal place (not two decimal places) eg 12.45 and the numbers are mixed plus and minus values, it works fine. However, if just one of the numbers in that column has 1 digit infront of the decimal eg 3.56 when the rest have two, it chokes and doesn't sort properly. The same happens if ALL numbers are one digit infront of the decimal and one or two numbers have two. Does anyone have any idea why this is happening and if so can it be fixed? Much appreciate any help, Cheers, Hugh. |