Sort table by Integer values - bind values as Integer
Sort table by Integer values - bind values as Integer
Valerels
Posts: 2Questions: 1Answers: 0
Hi everyone,
I want to sort some column, but the values are String type. How can I bind values into the table by their real types, like integer; then sort the column. If the values are string I get sorting like 1,11,2,22,3.....
So I have 2 questions:
1. How to bind values by their real type (Int, DateTime...)
2. How to sort column, if the values are string and I need them to be Int.
Code HTML:
This discussion has been closed.
Answers
This is HTML code:
Hi @Valerels ,
It will sort numerically by default - see here.
If that's not happening for you, it would suggest that there's a non-numeric value in that column. If that's not the case, we're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.
Cheers,
Colin