Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.8.1
-
Component/s: groovy-jdk
-
Labels:None
-
Number of attachments :
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 ![]()
Here's a test case