SteamWar/BungeeCore
Archiviert
13
2

EventFight order hotfix

Dieser Commit ist enthalten in:
Lixfel 2019-11-16 14:53:11 +01:00
Ursprung 78ea4ed6e4
Commit afc74d6a34

Datei anzeigen

@ -42,7 +42,7 @@ public class EventFight implements Comparable<EventFight> {
} }
public static void loadAllComingFights(){ 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(); fights.clear();
try{ try{
while(rs.next()){ while(rs.next()){
@ -54,7 +54,7 @@ public class EventFight implements Comparable<EventFight> {
} }
public static List<EventFight> getEvent(int eventID){ public static List<EventFight> 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<EventFight> fights = new LinkedList<>(); List<EventFight> fights = new LinkedList<>();
try{ try{
while(rs.next()) while(rs.next())