Skip to content

Commit

Permalink
When converting Set into Array, sort the items
Browse files Browse the repository at this point in the history
  • Loading branch information
eifrah-aws committed Jun 16, 2024
1 parent 1ca27f4 commit 698583f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions node/tests/TestUtilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ function intoArrayInternal(obj: any, builder: Array<string>) {
}
} else if (obj instanceof Set) {
const arr = Array.from(obj);
arr.sort();

for (const item of arr) {
intoArrayInternal(item, builder);
Expand Down

0 comments on commit 698583f

Please sign in to comment.