Skip to content

Commit

Permalink
sort the listAccounts() output to ensure consistent result throughout…
Browse files Browse the repository at this point in the history
… times
  • Loading branch information
koresar committed Dec 1, 2023
1 parent 615c1a1 commit bb8bec2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Book.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function fromDistinctToAccounts(distinctResult: string[]) {
accountsSet.add(path);
}
}
return Array.from(accountsSet);
return Array.from(accountsSet).sort();
}

export class Book<U extends ITransaction = ITransaction, J extends IJournal = IJournal> {
Expand Down

0 comments on commit bb8bec2

Please sign in to comment.