Join Slack
Powered by
How do I sort ArrayList<Something> instead o...
# getting-started
s
Slava Glushenkov
02/24/2019, 7:12 AM
How do I sort ArrayList<Something> instead of theArrayList.sortBy{ it.foo} to avoid ConcurrentModificationException? CopyOnWriteArrayList?
k
karelpeeters
02/24/2019, 9:51 AM
Getting that exception means you're modifying the collection somewhere else while sorting, so don't do that?
Open in Slack
Previous
Next