Sort and group tags for food