number sort
number sort
triumdh
Posts: 9Questions: 0Answers: 0
Hello,
I have a numbers column ranging from 400 to 1200. No other data. The sort option will bring up 1000 before 400 in the ascending and 999 first in decending. I see that it is reading the first number only when defining the sort order. When I add
[code]
{ "sType": "numeric", "aTargets": [ 4 ] }
[/code]
the numbers in the second column will change leaving all other results unchanged.
Do I have an error in the above code or do I need a pluggin when I use numeric data.
I also stripped out any null entries in the query.
All other columns sort correctly apart from the date which is in mm/dd/yyyy format.
I have a numbers column ranging from 400 to 1200. No other data. The sort option will bring up 1000 before 400 in the ascending and 999 first in decending. I see that it is reading the first number only when defining the sort order. When I add
[code]
{ "sType": "numeric", "aTargets": [ 4 ] }
[/code]
the numbers in the second column will change leaving all other results unchanged.
Do I have an error in the above code or do I need a pluggin when I use numeric data.
I also stripped out any null entries in the query.
All other columns sort correctly apart from the date which is in mm/dd/yyyy format.
This discussion has been closed.
Replies
Allan
Thank you for your reply.
The code is uvujub.
Martin
Allan
Thank you for your time and patience