Skip to content

Commit 87870b0

Browse files
committed
fix: sort direction uses key word asc desc
1 parent ddbedae commit 87870b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@
450450
if (name) {
451451
try {
452452
data.sort((a, b) => {
453-
if (sort[i].direction == '-1') {
453+
if (sort[i].direction == 'desc') {
454454
switch (typeof b[name]) {
455455
case 'string':
456456
if (!b[name]) b[name] = ""

0 commit comments

Comments
 (0)