Skip to content

Commit 16b7977

Browse files
authored
sort symbols (#529)
1 parent fe3816f commit 16b7977

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

governance/xc-admin/packages/xc-admin-frontend/components/tabs/MinPublishers.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,10 @@ const MinPublishers = () => {
139139
(mapping1, mapping2) =>
140140
mapping2.products.length - mapping1.products.length
141141
)[0]
142-
.products.map((product) =>
142+
.products.sort((product1, product2) =>
143+
product1.metadata.symbol.localeCompare(product2.metadata.symbol)
144+
)
145+
.map((product) =>
143146
product.priceAccounts.map((priceAccount) => {
144147
minPublishersData.push({
145148
symbol: product.metadata.symbol,

0 commit comments

Comments
 (0)