8289: further refine complex intervals while sorting