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 @@ -594,17 +594,23 @@ public function getItemGroups(): array
594594 $ data = $ this ->getData ();
595595 $ data = array_merge (...array_values ($ data ));
596596 $ data = $ this ->sortByTitle ($ data );
597- return ['' => $ data ];
597+ $ groups = ['' => $ data ];
598+ break ;
598599 case ilPDSelectedItemsBlockConstants::SORT_BY_START_DATE :
599- return $ this ->groupItemsByStartDate ();
600+ $ groups = $ this ->groupItemsByStartDate ();
601+ break ;
600602 case ilPDSelectedItemsBlockConstants::SORT_BY_TYPE :
601- return $ this ->groupItemsByType ();
603+ $ groups = $ this ->groupItemsByType ();
604+ break ;
602605 case ilPDSelectedItemsBlockConstants::SORT_MANUALLY :
603- return ['' => $ this ->sortManually ($ this ->getData ())];
606+ $ groups = ['' => $ this ->sortManually ($ this ->getData ())];
607+ break ;
604608 case ilPDSelectedItemsBlockConstants::SORT_BY_LOCATION :
605609 default :
606- return $ this ->groupItemsByLocation ();
610+ $ groups = $ this ->groupItemsByLocation ();
607611 }
612+ ksort ($ groups , SORT_NATURAL );
613+ return $ groups ;
608614 }
609615
610616 public function addToDeskObject (): void
You can’t perform that action at this time.
0 commit comments