File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed
src/components/EthExchanges Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -493,15 +493,16 @@ export const useEthExchanges = () => {
493493 }
494494
495495 // Add `value` & `label` for Select component
496- const exchangesByCountry : Array < ExchangeByCountry > = shuffle (
497- data . exchangesByCountry . nodes . map ( ( node ) => {
498- return {
499- value : node . country ,
500- label : node . country ,
501- exchanges : node ,
502- }
503- } )
504- )
496+ const exchangesByCountry : Array < ExchangeByCountry > =
497+ data . exchangesByCountry . nodes
498+ . map ( ( node ) => {
499+ return {
500+ value : node . country ,
501+ label : node . country ,
502+ exchanges : node ,
503+ }
504+ } )
505+ . sort ( ( a , b ) => a . value . localeCompare ( b . value ) )
505506
506507 const exchangesArray = Object . keys ( exchanges ) as Array < ExchangeName >
507508 const walletProvidersArray = Object . keys (
You can’t perform that action at this time.
0 commit comments