File tree Expand file tree Collapse file tree
components/ILIAS/Dashboard/Block/classes Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments