Java, Eclipse Collections, Open Source, Programming, Software Development.
sorted copy of the List, so the source List remains unchanged. The following code copies a MutableList<Fruit> to a new MutableList<Fruit> and sorts it in natural order using toSortedList. @Test public void convertToSortedListForEquality() { MutableList<Fruit> list = Lists.mutable.of(Fruit.BANANA,