sorting domain map by values and domain analysis