From 0dbf810d41645c0775a81361e68e6980f92ac4d0 Mon Sep 17 00:00:00 2001 From: iszmais Date: Mon, 26 Jan 2026 14:49:38 +0100 Subject: [PATCH] fix secondary order of dashboard listings --- .../Dashboard/Block/classes/class.ilDashboardBlockGUI.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/components/ILIAS/Dashboard/Block/classes/class.ilDashboardBlockGUI.php b/components/ILIAS/Dashboard/Block/classes/class.ilDashboardBlockGUI.php index 7b6e852430bd..3f3dc7111676 100755 --- a/components/ILIAS/Dashboard/Block/classes/class.ilDashboardBlockGUI.php +++ b/components/ILIAS/Dashboard/Block/classes/class.ilDashboardBlockGUI.php @@ -515,10 +515,14 @@ public function getItemGroups(): array case ilPDSelectedItemsBlockConstants::SORT_BY_START_DATE: return $this->groupItemsByStartDate(); case ilPDSelectedItemsBlockConstants::SORT_BY_TYPE: - return $this->groupItemsByType(); + $groups = $this->groupItemsByType(); + ksort($groups, SORT_NATURAL); + return $groups; case ilPDSelectedItemsBlockConstants::SORT_BY_LOCATION: default: - return $this->groupItemsByLocation(); + $groups = $this->groupItemsByLocation(); + ksort($groups, SORT_NATURAL); + return $groups; } }