From 1dadd23ffbe91398a5450a0a7f093e890f706d5a Mon Sep 17 00:00:00 2001 From: Johannes Kantz <67144859+JohannesKantz@users.noreply.github.com> Date: Sun, 5 Feb 2023 08:38:40 +0100 Subject: [PATCH] fix: remove print --- .../bib/essensbestellungsverwaltung/OrderHistoryController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }