File tree 2 files changed +9
-4
lines changed
2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 24
24
"scripts" : {
25
25
"dev" : " babel-node build/local" ,
26
26
"build" : " babel-node build/lib" ,
27
- "build-analyze" : " babel-node build/lib --analyze" ,
28
27
"docs" : " babel-node build/docs" ,
29
- "docs-analyze" : " babel-node build/docs --analyze" ,
30
28
"lint" : " eslint --ext .js,.vue docs src build test" ,
31
29
"test" : " jest" ,
32
30
"coverage" : " yarn test --coverage" ,
43
41
"dependencies" : {
44
42
"date-fns" : " ^1.29.0" ,
45
43
"deepmerge" : " ^2.0.0" ,
46
- "lodash" : " ^4.17.4" ,
47
44
"popper.js" : " ^1.12.5" ,
48
45
"raf" : " ^3.4.0" ,
49
46
"vue" : " ^2.5.2"
Original file line number Diff line number Diff line change 67
67
mdSortFn: {
68
68
type: Function ,
69
69
default (value ) {
70
- return orderBy (value, [this .MdTable .sort ], [this .MdTable .sortOrder ])
70
+ return value .sort ((a , b ) => {
71
+ const sortBy = this .MdTable .sort
72
+
73
+ if (this .MdTable .sortOrder === ' desc' ) {
74
+ return a[sortBy].localeCompare (b[sortBy])
75
+ }
76
+
77
+ return b[sortBy].localeCompare (a[sortBy])
78
+ })
71
79
}
72
80
}
73
81
},
You can’t perform that action at this time.
0 commit comments