8289: further refine complex intervals while sorting
8296: fix nroots ordering