From f00a01c123df7145ef11ea1d60f2dd5d7fc3ff75 Mon Sep 17 00:00:00 2001 From: hide_d Date: Sat, 9 May 2020 17:22:35 +0900 Subject: [PATCH] =?UTF-8?q?=EB=82=B4=EB=AC=B4=EB=B6=80=20=EA=B5=AD?= =?UTF-8?q?=EB=A0=A5=EC=88=9C=20=EC=A0=95=EB=A0=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/b_dipcenter.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hwe/b_dipcenter.php b/hwe/b_dipcenter.php index 0dddc990..b937053f 100644 --- a/hwe/b_dipcenter.php +++ b/hwe/b_dipcenter.php @@ -96,8 +96,12 @@ $admin = $gameStor->getValues(['year','month']); $cityCntList = Util::convertPairArrayToDict($db->queryAllLists('SELECT nation, count(city) FROM city GROUP BY nation')); $dipStateList = Util::convertArrayToDict($db->query('SELECT you,state,term FROM diplomacy WHERE me = %i', $nationID), 'you'); +$nationsList = getAllNationStaticInfo(); +uasort($nationsList, function(array $lhs, array $rhs){ + return -($lhs['power']<=>$rhs['power']); +}); -foreach(getAllNationStaticInfo() as $staticNation): +foreach($nationsList as $staticNation): //속령수 $staticNationID = $staticNation['nation']; $cityCnt = $cityCntList[$staticNation['nation']]??0;