partially fix sort

This commit is contained in:
wh1te909 2021-01-14 00:01:08 +00:00
parent 56d4e694a2
commit 2abc6cc939
1 changed files with 3 additions and 3 deletions

View File

@ -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;
},
},
{