I want to sort an array of strings representing numerical ranges like the following:
b = ["0-5", "100-250", "5-25", "50-100", "250-500", "25-50"]
Using the sort method I get:
b.sort
# => ["0-5", "100-250", "25-50", "250-500", "5-25", "50-100"]
I want it like this instead:
["0-5, "5-25", "25-50", "50-100", "100-250", "250-500"]