Skip to content

Commit

Permalink
sort properly
Browse files Browse the repository at this point in the history
  • Loading branch information
youngcw committed Nov 30, 2023
1 parent 5a81a25 commit c0e81c4
Showing 1 changed file with 3 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

0 comments on commit c0e81c4

Please sign in to comment.