Skip to content

Commit 81dde2b

Browse files
authored
chore(table): fix sorting order display
1 parent 7953a9f commit 81dde2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/components/table.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@
416416
if (sortBy && !this.providerSorting) {
417417
items = items.sort((a, b) => {
418418
const r = sortCompare(a, b, sortBy);
419-
return sortDesc ? r : r * -1;
419+
return sortDesc ? (r * -1) : r;
420420
});
421421
}
422422

0 commit comments

Comments
 (0)