From 92b82b22b03a422687283da669b0daa1c9d2f006 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Thu, 18 Feb 2021 13:22:36 +0200 Subject: [PATCH] Resolved #3610 - city sorting in overview is now done by translated, not original, name --- core/src/com/unciv/ui/overviewscreen/CityOverviewTable.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/com/unciv/ui/overviewscreen/CityOverviewTable.kt b/core/src/com/unciv/ui/overviewscreen/CityOverviewTable.kt index ba4fd34a4e..808fa68e8a 100644 --- a/core/src/com/unciv/ui/overviewscreen/CityOverviewTable.kt +++ b/core/src/com/unciv/ui/overviewscreen/CityOverviewTable.kt @@ -5,6 +5,7 @@ import com.badlogic.gdx.scenes.scene2d.ui.Table import com.badlogic.gdx.utils.Align import com.unciv.logic.city.CityInfo import com.unciv.logic.civilization.CivilizationInfo +import com.unciv.models.translations.tr import com.unciv.ui.cityscreen.CityScreen import com.unciv.ui.utils.* import kotlin.math.max @@ -93,7 +94,7 @@ class CityOverviewTable(val viewingPlayer: CivilizationInfo, val overviewScreen: "Production" -> (city1.cityStats.currentCityStats.production - city2.cityStats.currentCityStats.production).toInt() "Culture" -> (city1.cityStats.currentCityStats.culture - city2.cityStats.currentCityStats.culture).toInt() "Happiness" -> (city1.cityStats.currentCityStats.happiness - city2.cityStats.currentCityStats.happiness).toInt() - else -> city2.name.compareTo(city1.name) + else -> city2.name.tr().compareTo(city1.name.tr()) } }