Fix sorting of regions by size rank.