It’s the identical method as grouping staff by Division. You have a Division for every employee and that turns into a important within the map, plus the corresponding values will be the lists of workforce assigned to that Office. In such a case, the keys are definitely the sorted text, along with the values are classified as the dictionary words