From afc74d6a3468c7d3cff8e43c8d48e4b70085a2f2 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Sat, 16 Nov 2019 14:53:11 +0100 Subject: [PATCH] EventFight order hotfix --- src/de/steamwar/bungeecore/sql/EventFight.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/de/steamwar/bungeecore/sql/EventFight.java b/src/de/steamwar/bungeecore/sql/EventFight.java index cd4f49f..9a6b820 100644 --- a/src/de/steamwar/bungeecore/sql/EventFight.java +++ b/src/de/steamwar/bungeecore/sql/EventFight.java @@ -42,7 +42,7 @@ public class EventFight implements Comparable { } public static void loadAllComingFights(){ - ResultSet rs = SQL.select("SELECT * FROM EventFight WHERE StartTime > now()"); + ResultSet rs = SQL.select("SELECT * FROM EventFight WHERE StartTime > now() ORDER BY `StartTime` ASC"); fights.clear(); try{ while(rs.next()){ @@ -54,7 +54,7 @@ public class EventFight implements Comparable { } public static List getEvent(int eventID){ - ResultSet rs = SQL.select("SELECT * FROM EventFight WHERE EventID = " + eventID + " ORDER BY FightID ASC"); + ResultSet rs = SQL.select("SELECT * FROM EventFight WHERE EventID = " + eventID + " ORDER BY `StartTime` ASC"); List fights = new LinkedList<>(); try{ while(rs.next())