3 Replies Latest reply on Dec 5, 2011 4:37 PM by Varson

    Custom Sort on Advanced Data Grid

    Varson

      I'm a fairly new flex developer and a fairly new programmer so bear with me.

       

      There is a column I am trying to do a custom sort on.  It has a string value something like this:   "132,409 to 135,508"

       

      Since it is a string, it won't sort quite right.  What I am trying to do is take that first number and sort by it as a number, not as a string. 

       

      Is there some way to read in that string up to the word "to", cast it as a number, then sort by it?

       

      Thanks!