From 9b6867124532339590eacd44b42c22286c5c6368 Mon Sep 17 00:00:00 2001 From: Krakenied Date: Tue, 15 Mar 2022 16:19:10 +0100 Subject: [PATCH] Fix experience sorting in top command --- src/main/java/com/gamingmesh/jobs/dao/JobsDAO.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/gamingmesh/jobs/dao/JobsDAO.java b/src/main/java/com/gamingmesh/jobs/dao/JobsDAO.java index 3fd33945..4259f451 100644 --- a/src/main/java/com/gamingmesh/jobs/dao/JobsDAO.java +++ b/src/main/java/com/gamingmesh/jobs/dao/JobsDAO.java @@ -2712,8 +2712,7 @@ public abstract class JobsDAO { try { prest = conn.prepareStatement("SELECT `" + JobsTableFields.userid.getCollumn() + "`, `" + JobsTableFields.level.getCollumn() + "`, `" + JobsTableFields.experience.getCollumn() + "` FROM `" + getJobsTableName() + "` WHERE `" + JobsTableFields.jobid.getCollumn() + "` LIKE ? OR `" + JobsTableFields.jobid.getCollumn() + "` LIKE ? ORDER BY `" + JobsTableFields.level.getCollumn() - + "` DESC, LOWER(" - + JobsTableFields.experience.getCollumn() + ") DESC LIMIT " + limit + ", 50;"); + + "` DESC, `" + JobsTableFields.experience.getCollumn() + "` DESC LIMIT " + limit + ", 50;"); prest.setInt(1, job.getId()); prest.setInt(2, job.getLegacyId()); res = prest.executeQuery();