Question d’entretien chez Nordstrom

Map-related algorithm problem, how to sort the items based on more than 1 category.