我有下表:
Name Type Color Place
Ana A Blue America
Sandra A Red India
Mary A Red America
Paige B Orange Africa
Fox B White Africa
John C Black Mexico
我想按类型和显示对项目进行分组,如下所示:
Type A
Ana - Blue - America
Sandra - Red - India
Mary - Red - America
Type B
Paige - Orange - Africa
Fox - White - Africa
Type C
John - Black - Mexico
什么样的循环可以帮助我解决这个问题?
谢谢!