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; } }