number sort
number sort
![triumdh](https://secure.gravatar.com/avatar/1e0574110e59f2f3b28024dd1cca3883/?default=https%3A%2F%2Fvanillicon.com%2F1e0574110e59f2f3b28024dd1cca3883_200.png&rating=g&size=120)
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