Modified default model sorting to take parent objects into consideration, for example sort localities first by country, admin1 and then admin2.