fix sort in root space.