mirror of
https://github.com/mempool/mempool.git
synced 2025-04-02 17:08:33 +02:00
Merge pull request #4872 from mempool/natsoni/fix-fiat-selector-sorting
Sort currency by ticker in fiat selector
This commit is contained in:
commit
37cb9b0fe8
@ -13,10 +13,10 @@ import { StateService } from '../../services/state.service';
|
||||
export class FiatSelectorComponent implements OnInit {
|
||||
fiatForm: UntypedFormGroup;
|
||||
currencies = Object.entries(fiatCurrencies).sort((a: any, b: any) => {
|
||||
if (a[1].name < b[1].name) {
|
||||
if (a[1].code < b[1].code) {
|
||||
return -1;
|
||||
}
|
||||
if (a[1].name > b[1].name) {
|
||||
if (a[1].code > b[1].code) {
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user