Sorted the currency rates.
This commit is contained in:
parent
1d15d669b1
commit
9f82690ec7
2 changed files with 2 additions and 4 deletions
|
@ -190,7 +190,7 @@ class CurrencyConverter(bot: Mobibot) : ThreadedModule(bot) {
|
|||
@JvmStatic
|
||||
fun currencyRates(): List<String> {
|
||||
val rates = mutableListOf<String>()
|
||||
for ((key, value) in EXCHANGE_RATES) {
|
||||
for ((key, value) in EXCHANGE_RATES.toSortedMap()) {
|
||||
@Suppress("MagicNumber")
|
||||
rates.add(" $key: ${value.padStart(8)}")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue