Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
795
Problem while sorting range values of the particular column
posted

I have a range column in infragistics grid. After sorting the values by clicking the header of the column the sorted data looks like below. The resulted sorted data doesn't look fine. Please advice

 

.00-100000000.00
.00-100000000.00
.00-100000000.00
.00-100000000.00
.00-102000000.00
.00-102000000.00
.00-10300000.00
.00-10300000.00
.00-10300000.00
.00-106000000.00
.00-106000000.00
.00-106000000.00
.00-106000000.00
.00-106000000.00
.00-106000000.00
.00-110000.00
.00-110000.00
.00-11000000.00
.00-11000000.00
.00-11000000.00
.00-11000000.00
.00-11000000.00
.00-11000000.00
.00-11000000.00
.00-11000000.00
.00-11000000.00
.00-11000000.00
.00-11000000.00
.00-11000000.00
.00-11000000.00
.00-110000000.00
.00-110000000.00
.00-11038000.00
.00-11038000.00
.00-111148395.00
.00-111148395.00
.00-1123000.00
  • 469350
    Offline posted

    What's wrong with the data as it is sorted here? The sort order appears correct to me.

  • 69832
    Suggested Answer
    Offline posted

    They are most likely being sorted as strings. They don't look like numbers to me so to make them sort like numbers, you would have to implement the IComparer interface on a custom class and assign that implementation to the column's SortComparer property.