fix tree sorting

This commit is contained in:
wh1te909 2020-05-31 20:36:27 +00:00
parent 84f2aa3f8b
commit 184a94ca46
1 changed files with 1 additions and 1 deletions

View File

@ -222,7 +222,7 @@ export const store = new Vuex.Store({
// first sort alphabetically, then move failing clients to the top
const sortedAlpha = output.sort((a, b) => (a.label > b.label ? 1 : -1));
const sortedByFailing = sortedAlpha.sort(a =>
a.iconColor === "red" ? -1 : 1
a.iconColor === "negative" ? -1 : 1
);
commit("loadTree", sortedByFailing);
//commit("destroySubTable");