How to arrange ages in ascending order dynamically

Hi @anjani_priya

Input = New List(Of String) From {“0-30”, “181-365”, “31-60”, “365-700”, “91-180”}

Order = Input.OrderBy(Function(range) Convert.ToInt32(range.Split("-"c)(0))).ToList()

Output = String.Join(“,”, Order)


If you found helpful, feel free to tick as a solution.
Happy Automation