我有一个列表,比方说[Cat, Dog, Cow, Horse],我希望按以下方式排序
[Cat, Dog, Cow, Horse]
Cat
Cow
有什么建议如何在Groovy中完成?
sorting groovy
groovy ×1
sorting ×1