Regenerate the shading ranks in descending order