Skip to content

Commit 6fd9f60

Browse files
priyangbhavsarrgrunber
authored andcommitted
server task sorting issue fix
Signed-off-by: Priyang Bhavsar <[email protected]>
1 parent 8f10218 commit 6fd9f60

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/serverTasks.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,7 @@ function organizeTasks() {
3434
}
3535

3636
// make sure in-progress items are always at the end
37-
newArray.sort((a, b) => {
38-
const ai = a.complete ? 0 : 1, bi = a.complete ? 0 : 1;
39-
return ai - bi;
40-
});
37+
newArray.sort((a, b) => Number(b.complete) - Number(a.complete));
4138

4239
tasks = newArray;
4340
}

0 commit comments

Comments
 (0)