mirror of
https://github.com/Zrips/Jobs.git
synced 2025-01-02 14:29:07 +01:00
Merge pull request #1422 from Krakenied/master
Fix experience sorting (do not sort alphabetically lol)
This commit is contained in:
commit
3352527434
@ -2712,8 +2712,7 @@ public abstract class JobsDAO {
|
|||||||
try {
|
try {
|
||||||
prest = conn.prepareStatement("SELECT `" + JobsTableFields.userid.getCollumn() + "`, `" + JobsTableFields.level.getCollumn() + "`, `" + JobsTableFields.experience.getCollumn() + "` FROM `"
|
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()
|
+ getJobsTableName() + "` WHERE `" + JobsTableFields.jobid.getCollumn() + "` LIKE ? OR `" + JobsTableFields.jobid.getCollumn() + "` LIKE ? ORDER BY `" + JobsTableFields.level.getCollumn()
|
||||||
+ "` DESC, LOWER("
|
+ "` DESC, `" + JobsTableFields.experience.getCollumn() + "` DESC LIMIT " + limit + ", 50;");
|
||||||
+ JobsTableFields.experience.getCollumn() + ") DESC LIMIT " + limit + ", 50;");
|
|
||||||
prest.setInt(1, job.getId());
|
prest.setInt(1, job.getId());
|
||||||
prest.setInt(2, job.getLegacyId());
|
prest.setInt(2, job.getLegacyId());
|
||||||
res = prest.executeQuery();
|
res = prest.executeQuery();
|
||||||
|
Loading…
Reference in New Issue
Block a user