There is a list of String currency ISO codes in random order: CHF, USD, AUD, EUR, 0995, AED... etc.
Is there an algorithm to sort it in the following order: first should go only main currencies (USD, CHF, EUR) - in exactly this order, then alphabetically all other currencies, then all numeric currency codes?
As of now i do it in 3 steps by simply creating 3 separate lists, sorting them accordingly and then making list.addAll. Would appreciate any help