fix process sorting

This commit is contained in:
sadnub
2021-01-10 19:35:39 -05:00
parent 3f261b4374
commit 36b40bbc29

View File

@@ -109,6 +109,11 @@ export default {
field: "memory_percent",
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;
},
},
{
name: "username",