Skip to content

Commit

Permalink
[Goals]: Sort the priorities properly (actualbudget#2000)
Browse files Browse the repository at this point in the history
* sort properly

* note
  • Loading branch information
youngcw authored Dec 1, 2023
1 parent d1217f0 commit 298da6e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/loot-core/src/server/budget/goaltemplates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 } =
Expand Down
6 changes: 6 additions & 0 deletions upcoming-release-notes/2000.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [youngcw]
---

Goals: Fix priority sorting

0 comments on commit 298da6e

Please sign in to comment.