Fixed spurious sort