Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
The documentation for Collection.sort(Comparator comparator) at http://groovy.codehaus.org/groovy-jdk/java/util/Collection.html#sort%28java.util.Comparator%29 states
Sorts the Collection using the given comparator. The elements are sorted into a new list, and the existing collection is unchanged.
However, it does seem to mutate the original list