I have an iterator of strings.
For sorting i need to create a list from it and sort it using Collections.sort(list).
Collections.sort(list)
Is there any simple way t
Use TreeSet or TreeMap. They are collections that are already sorted.