add more cases for already sorted context