Skip to content

Commit 708bcb6

Browse files
authored
fix secondary order of dashboard listings (#10982)
1 parent 8522a9e commit 708bcb6

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

components/ILIAS/Dashboard/Block/classes/class.ilDashboardBlockGUI.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -515,10 +515,14 @@ public function getItemGroups(): array
515515
case ilPDSelectedItemsBlockConstants::SORT_BY_START_DATE:
516516
return $this->groupItemsByStartDate();
517517
case ilPDSelectedItemsBlockConstants::SORT_BY_TYPE:
518-
return $this->groupItemsByType();
518+
$groups = $this->groupItemsByType();
519+
ksort($groups, SORT_NATURAL);
520+
return $groups;
519521
case ilPDSelectedItemsBlockConstants::SORT_BY_LOCATION:
520522
default:
521-
return $this->groupItemsByLocation();
523+
$groups = $this->groupItemsByLocation();
524+
ksort($groups, SORT_NATURAL);
525+
return $groups;
522526
}
523527
}
524528

0 commit comments

Comments
 (0)