From da663bdf2cf7257f2568dcba5132d5dd43f126c7 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Sun, 22 Dec 2019 08:22:52 +0100 Subject: [PATCH] Sorting Schematics --- SpigotCore_Main/src/de/steamwar/sql/Schematic.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SpigotCore_Main/src/de/steamwar/sql/Schematic.java b/SpigotCore_Main/src/de/steamwar/sql/Schematic.java index 91c9bd4..36854d2 100644 --- a/SpigotCore_Main/src/de/steamwar/sql/Schematic.java +++ b/SpigotCore_Main/src/de/steamwar/sql/Schematic.java @@ -76,7 +76,7 @@ public class Schematic { public static List getSchemsAccessibleByUser(int schemOwner){ try{ - ResultSet schematic = SQL.select("SELECT SchemID, SchemName, SchemOwner, Item, SchemType, SchemFormat FROM Schematic WHERE SchemOwner = '" + schemOwner + "'"); + ResultSet schematic = SQL.select("SELECT SchemID, SchemName, SchemOwner, Item, SchemType, SchemFormat FROM Schematic WHERE SchemOwner = '" + schemOwner + "' ORDER BY SchemName"); List schematics = new ArrayList<>(); while(schematic.next()){ schematics.add(new Schematic(schematic));