Skip to content

Commit 5a5497d

Browse files
committed
fix secondary order of dashboard listings
1 parent b928b2a commit 5a5497d

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -597,13 +597,17 @@ public function getItemGroups(): array
597597
return ['' => $data];
598598
case ilPDSelectedItemsBlockConstants::SORT_BY_START_DATE:
599599
return $this->groupItemsByStartDate();
600-
case ilPDSelectedItemsBlockConstants::SORT_BY_TYPE:
601-
return $this->groupItemsByType();
602600
case ilPDSelectedItemsBlockConstants::SORT_MANUALLY:
603601
return ['' => $this->sortManually($this->getData())];
602+
case ilPDSelectedItemsBlockConstants::SORT_BY_TYPE:
603+
$groups = $this->groupItemsByType();
604+
ksort($groups, SORT_NATURAL);
605+
return $groups;
604606
case ilPDSelectedItemsBlockConstants::SORT_BY_LOCATION:
605607
default:
606-
return $this->groupItemsByLocation();
608+
$groups = $this->groupItemsByLocation();
609+
ksort($groups, SORT_NATURAL);
610+
return $groups;
607611
}
608612
}
609613

0 commit comments

Comments
 (0)