fix process sorting
This commit is contained in:
parent
b6449d2f5b
commit
6812e72348
|
@ -109,6 +109,11 @@ export default {
|
||||||
field: "memory_percent",
|
field: "memory_percent",
|
||||||
align: "left",
|
align: "left",
|
||||||
sortable: true,
|
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",
|
name: "username",
|
||||||
|
|
Loading…
Reference in New Issue