数据分析,基础分析,表格排序;

This commit is contained in:
钱冠学
2023-10-31 19:03:22 +08:00
parent b9efc0f7db
commit 73d5bc369a
2 changed files with 4 additions and 4 deletions

View File

@@ -124,8 +124,8 @@ export default defineComponent({
return 0;
}
switch(order) {
case "ascend": return a[columnKey] - b[columnKey];
case "descend": return b[columnKey] - a[columnKey];
case "descend": return a[columnKey] - b[columnKey];
case "ascend": return b[columnKey] - a[columnKey];
default: return 0;
}
});