I would like to know how can I sort strings in javascript containing comma separated values in different order e.g.
Your help will be appreciated.1. Need to remove the distance "Km"
2. Sort values comma delimitedASC
3. append the distances to each distance
input value "10km,50km, 21.1km"; result "50km,21.1km,10km";
Thanks