Sorting Strings having digits and dots(.)
807589Nov 18 2008 — edited Dec 2 2008I would like to sort an array of strings having values like 1, 1.1, 2, 2.1, 1.1.1, 2.1.1, 1.1.2 and so on.
this should be sorted as 1, 1.1, 1.1.1, 1.1.2, 2, 2.1, 2.1.1
if u can think of an effective algo, plz help me.