added cases for different order