The Collections.sort() method mutates the list and returns the list as a value. If you are assigning the result of sort() to a variable, then you probably don't realize that you're also modifying the original list as well. This is frequently the cause of subtle bugs.
Type | Name and description |
---|---|
Class |
astVisitorClass |
String |
name |
int |
priority |