grouping markets by name