try to fix race condition in Sort.equals