[Goals]: Sort the priorities properly (#2000)

* sort properly

* note
This commit is contained in:
youngcw
2023-12-01 08:40:35 -07:00
committed by GitHub
parent 5d61dfce68
commit c96782d7c1
2 changed files with 9 additions and 1 deletions

View File

@@ -197,7 +197,9 @@ async function processTemplate(
// sort and filter down to just the requested priorities
priority_list = priority_list
.sort()
.sort(function (a, b) {
return a - b;
})
.filter((item, index, curr) => curr.indexOf(item) === index);
let { remainder_found, remainder_priority, remainder_weight_total } =

View File

@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [youngcw]
---
Goals: Fix priority sorting