How to sort collection by enum's ordinal

后端 未结 0 1431
陌清茗
陌清茗 2020-12-04 21:29

There is an enum:

enum Status {
  S1,
  S2,
  S3
}

And a collection. I need to sort it by enum\'s ordinal. When I tried so, it\'s sorting by

相关标签:
回答
  • 消灭零回复
提交回复
热议问题