Order currency list alphabetically

This commit is contained in:
Fernando Porazzi
2023-10-26 15:18:47 +02:00
committed by Paul Miller
parent 0847f4c332
commit 152aee0cfe

View File

@@ -101,7 +101,7 @@ export const FIAT_OPTIONS: Currency[] = [
maxFractionalDigits: 0
},
{ label: "Kuwaiti Dinar KWD", value: "KWD", maxFractionalDigits: 3 }
];
].sort((a, b) => (a.value > b.value ? 1 : b.value > a.value ? -1 : 0));
export function ChooseCurrency() {
const i18n = useI18n();