Skip to content

Commit

Permalink
fix: sorting bug for ascending assets
Browse files Browse the repository at this point in the history
  • Loading branch information
TarikGul committed Oct 23, 2023
1 parent 8aa68b7 commit 48413a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/createXcmTypes/util/sortMultiAssetsAscending.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const getSameJunctionMultiLocationSortOrder = (
a.id.Concrete.interior.asX1.type === b.id.Concrete.interior.asX1.type &&
!a.id.Concrete.interior.asX1.eq(b.id.Concrete.interior.asX1)
) {
if (a.id.Concrete.interior.asX1.value < a.id.Concrete.interior.asX1.value) {
if (a.id.Concrete.interior.asX1.value < b.id.Concrete.interior.asX1.value) {
return -1;
} else if (a.id.Concrete.interior.asX1.value > b.id.Concrete.interior.asX1.value) {
return 1;
Expand Down

0 comments on commit 48413a9

Please sign in to comment.