Fixed logic determining to skip sort

Logic to skip the sort used a double negative