List complex sorting

后端 未结 5 1314
攒了一身酷
攒了一身酷 2020-11-27 07:37

I have a List of sizes, say XS, S, M, L, XL, XXL, UK 10, UK 12 etc

What I want is to force the order to be that of above, regardless of th

5条回答
  •  悲&欢浪女
    2020-11-27 08:21

    You can also create other list, and use a delegate to use with the sort, where you return if the index of size1 > index of size2.

提交回复
热议问题