Mutual exclusive test upon sorting