Sort rankings by time of last EXP gain (#352)

* Sort rankings by time of last EXP gain

* Fix prepared values order
This commit is contained in:
MedicOP
2019-01-21 21:02:32 +01:00
committed by Ronan Lana
parent 3a0ea6fc77
commit 224f5c677b
4 changed files with 13 additions and 5 deletions

View File

@@ -50,7 +50,7 @@ public class RankingLoginWorker implements Runnable {
if (job != -1) {
sqlCharSelect += "AND c.job DIV 100 = ? ";
}
sqlCharSelect += "ORDER BY c.level DESC , c.exp DESC , c.fame DESC , c.meso DESC";
sqlCharSelect += "ORDER BY c.level DESC , c.exp DESC , c.lastExpGainTime ASC, c.fame DESC , c.meso DESC";
PreparedStatement charSelect = con.prepareStatement(sqlCharSelect);
charSelect.setInt(1, world);