Skip to content

Commit 00ae3d5

Browse files
committed
Jet Studio
------------ * Bug Fix: Menu items sorting problem
1 parent 9a8210f commit 00ae3d5

File tree

1 file changed

+4
-0
lines changed
  • _tools/studio/application/Modules/Menus

1 file changed

+4
-0
lines changed

_tools/studio/application/Modules/Menus/Menu.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,10 @@ public function catchEditForm(): bool
204204
*/
205205
public function getMenuItems(): array
206206
{
207+
uasort($this->items, function( Navigation_Menu_Item $a, Navigation_Menu_Item $b ) {
208+
return $a->getIndex() <=> $b->getIndex();
209+
});
210+
207211
return $this->items;
208212
}
209213

0 commit comments

Comments
 (0)