Sorted paths and groups by country code