Skip to content

Commit

Permalink
fix sorting logic
Browse files Browse the repository at this point in the history
  • Loading branch information
mkaczanowski committed Jan 15, 2025
1 parent 02034c4 commit aa57df6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ton/src/TonPoolStaker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ export class TonPoolStaker extends TonBaseStaker {
}

// return elections sorted by id (bigint) in descending order
return elections.sort((a, b) => (a > b ? 1 : -1));
return elections.sort((a, b) => (a.id > b.id ? -1 : 1));
}

/** @ignore */
Expand Down

0 comments on commit aa57df6

Please sign in to comment.