try to fix race condition in Sort.equals
Merge pull request #1260 from dwightguth/race

try to fix race condition in Sort.equals