[flexcoders] Converting strings to numbers before sorting?

2009-02-26 Thread Keith Hughitt
Hi all, I have a problem related to sorting type-casted numeric data, and was wondering if someone could help me out: Given some numeric data stored as strings (11.5), how can I populate it into a DataGrid and have it sort properly? From the Flex API docs

Re: [flexcoders] Converting strings to numbers before sorting?

2009-02-26 Thread Adrian Williams
Hi Keith, Have you tried casting your string to a number via the number() function first? Number() handles floating points well. We have the same problem sorting kit numbers in true numerical fashion as we can have some that begin with a letter versus a true number. So in our sort