How do I sort ArrayList<Something> instead o...
# getting-started
s
How do I sort ArrayList<Something> instead of theArrayList.sortBy{ it.foo} to avoid ConcurrentModificationException? CopyOnWriteArrayList?
k
Getting that exception means you're modifying the collection somewhere else while sorting, so don't do that?