Sorting does not work properly with decimals

I'm trying to have sorting work when the values are numeric decimals. Has anyone else ever run into this problem?

Please see attached screenshot.

In both screens you can see how I am sorting Asc and Desc, the numbers aren't correct.


Attachment: Archive_e76e1743.zip

3 Replies 1 reply marked as answer

RR Rajapandi Ravi Syncfusion Team July 19, 2022 01:55 PM UTC

Hi Andy,


Greetings from Syncfusion support


We have checked your shared information and we suspect that you are maintaining string type value data for the Page Score column and it was the cause of the problem. so please provide it as number type value for the Page Score column to achieve the requirement.


If you still face the issue, please share your sample datasource structure and if possible share any simple issue reproducible sample that would be helpful for us to validate.


Regards,

Rajapandi R


Marked as answer

AN Andy replied to Rajapandi Ravi July 19, 2022 05:49 PM UTC

Hey Rajapandi, thanks for getting back to me.

After looking at my data I realized my decimals were being sent in as strings. After changing them to numbers I was able to get it to work.

Thanks!



RR Rajapandi Ravi Syncfusion Team July 20, 2022 10:08 AM UTC

Hi Andy,


We are happy to hear that our provide suggestion was helpful to resolve the problem at your end.

Please get back to us if you need further assistance.


Regards,

Rajapandi R


Loader.
Up arrow icon