Fix issue with multiple threads sorting users at same time