Datagrid sort problems - please help...

  • Thread starter Thread starter almurph
  • Start date Start date
A

almurph

Hi everybody,

I have a Web Application datagrid and its displaying columns of
data. One of the columns has numbers in it. When I click on its title
(to sort the data) - it does so up to a point. All numbers above 10
are ranked accordingly. But any numbers < 10 like 9.525 for example
are not effected - that is, they appear at the top, so you get
something like this:

Item Rank
A 9.525 <--- not sorted, unaffected really
B 9.525
C 50
D 40.345
E 10.523
F 10.00


My suspicion is that the single number to the left of the decimal
point is messing up the sort mechanism somehow. But I don't know
why...??? Very confusing.
Anyone with any comments/suggestions/ideas/possible solutions as to
why this is occuring? I would appreciate any feedback that you may be
able to offer. I'm at my wits end.

Thanks,
Al.
 
I have a Web Application datagrid and its displaying columns of
data. One of the columns has numbers in it. When I click on its title
(to sort the data) - it does so up to a point. All numbers above 10
are ranked accordingly. But any numbers < 10 like 9.525 for example
are not effected - that is, they appear at the top, so you get
something like this:

Item Rank
A 9.525 <--- not sorted, unaffected really
B 9.525
C 50
D 40.345
E 10.523
F 10.00

This looks fine to me - values sorted in descending order of their
[String] Values - "9" being greater than "1", etc.

How is your column supposed to know it contains numbers and should,
therefore, perform a /numeric/ comparison?

HTH,
Phill W.
 
Back
Top