How to arrange ages in ascending order dynamically

@anjani_priya

Please try this

Say you are getting a string in the above given format

Str.split(" "c).OrderBy(function(x) cint(x.split("-"c).First)).Toarray this will give array of strings in ascending order

Cheers