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