diff --git a/src/main/java/com/bib/essensbestellungsverwaltung/OrderHistoryController.java b/src/main/java/com/bib/essensbestellungsverwaltung/OrderHistoryController.java index 46944aa..fa46ec3 100644 --- a/src/main/java/com/bib/essensbestellungsverwaltung/OrderHistoryController.java +++ b/src/main/java/com/bib/essensbestellungsverwaltung/OrderHistoryController.java @@ -17,7 +17,6 @@ public class OrderHistoryController { List orders = new ArrayList<>(); for (Child child : children) { - System.out.println(child.getId()); List selections = Database.select("food_selection", new String[] { "childid" }, new String[] { String.valueOf(child.getId()) }); for (String selection : selections) { String[] selectionParts = selection.split(":"); @@ -30,6 +29,7 @@ public class OrderHistoryController { } Collections.sort(orders); + Collections.reverse(orders); for(String order : orders){ listView.getItems().add(order); }