if multiple threads from worldgen sort at same time, it will crash. So make a copy of the list for sorting purposes. Fixes #3732 Fixes #3824