自定义排序中字段命名问题 #215
qubaomingg
started this conversation in
Ideas
Replies: 3 comments
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
customOrder: ['四川省', '浙江省'] |
Beta Was this translation helpful? Give feedback.
0 replies
-
sortBy: ['四川省', '浙江省'] sortBy: (a, b) => number; // 0 1 -1 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
问题定义
目前仓库中用户自定义排序是
含义是,交叉表省份排序中,用户自定义的「四川省」和「浙江省」排在一二位。
对应到 DI 中是
sortBy
字面意思是按照什么排序,比如按照省份排序。思考
自定义排序命名,感觉应该是
customSort
。比如
前者感觉怪怪的,大家可以讨论下
Beta Was this translation helpful? Give feedback.
All reactions