From 7f27ff0b3d0b2f583616ba5b4d6f5673963aa0ad Mon Sep 17 00:00:00 2001 From: filippo-ferrari Date: Mon, 15 Jul 2024 19:44:11 +0200 Subject: [PATCH] fix: order after refresh --- .../com/application/munera/views/expenses/ExpensesView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/application/munera/views/expenses/ExpensesView.java b/src/main/java/com/application/munera/views/expenses/ExpensesView.java index fc06a49..4ad3e44 100644 --- a/src/main/java/com/application/munera/views/expenses/ExpensesView.java +++ b/src/main/java/com/application/munera/views/expenses/ExpensesView.java @@ -276,7 +276,7 @@ public class ExpensesView extends Div implements BeforeEnterObserver { } private void refreshGrid() { - grid.setItems(this.expenseService.findAll()); + grid.setItems(this.expenseService.findAllOrderByDateDescending()); grid.select(null); grid.getDataProvider().refreshAll(); }