From 2abc6cc93910cee34988a16c5591a96d69f25418 Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Thu, 14 Jan 2021 00:01:08 +0000 Subject: [PATCH] partially fix sort --- web/src/components/ProcessManager.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/src/components/ProcessManager.vue b/web/src/components/ProcessManager.vue index 7bd00d8e..04a0b2dd 100644 --- a/web/src/components/ProcessManager.vue +++ b/web/src/components/ProcessManager.vue @@ -110,9 +110,9 @@ export default { align: "left", sortable: true, sort: (a, b, rowA, rowB) => { - newA = parseFloat(a.replace(/[a-z]+/i, "")); - newB = parseFloat(b.replace(/[a-z]+/i, "")); - newB < newA; + const newA = parseFloat(a.replace(/[a-z]+/i, "")); + const newB = parseFloat(b.replace(/[a-z]+/i, "")); + return newB < newA; }, }, {