From a85190f71f02c6537e35fd31af46cbd3461a7155 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 --- .../Block/classes/class.ilDashboardBlockGUI.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/components/ILIAS/Dashboard/Block/classes/class.ilDashboardBlockGUI.php b/components/ILIAS/Dashboard/Block/classes/class.ilDashboardBlockGUI.php index 3b32e601c6df..1497440bdfb1 100755 --- a/components/ILIAS/Dashboard/Block/classes/class.ilDashboardBlockGUI.php +++ b/components/ILIAS/Dashboard/Block/classes/class.ilDashboardBlockGUI.php @@ -597,13 +597,17 @@ public function getItemGroups(): array return ['' => $data]; case ilPDSelectedItemsBlockConstants::SORT_BY_START_DATE: return $this->groupItemsByStartDate(); - case ilPDSelectedItemsBlockConstants::SORT_BY_TYPE: - return $this->groupItemsByType(); case ilPDSelectedItemsBlockConstants::SORT_MANUALLY: return ['' => $this->sortManually($this->getData())]; + case ilPDSelectedItemsBlockConstants::SORT_BY_TYPE: + $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; } }