Make getRegionLevel() more robust and add sorting of subregions in tooltip