Click here to Skip to main content
15,881,588 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,
I am using gridviewfix datatable plugin my project. There is some error due to sort that table. For example I sort number in 'asc'. It shows (1,10,100,1000...) instead of (1,2,3,4...etc). Kindly reply me.. Thanks in advance
Posted
Comments
[no name] 5-Aug-15 15:00pm    
Most likely because you are sorting strings, not numbers. Reposting the same thing over and over tends to annoy people.

1 solution

Wes is correct. The column which you are sorting, might be of type string, not integer. If you want to sort integers, then mark it like that.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900