private static function SortByNavIndex(array &$result)
    {
        $sorted = array();
        foreach ($result as $bundle=>$modules)
        {
            ksort($modules);
            $sorted[$bundle] = $modules;
        }
        return $sorted;
    }
private static function SortByNavIndex(array &$result)
    {
        $sorted = array();
        foreach ($result as $bundle=>$modules)
        {
            ksort($modules);
            $sorted[$bundle] = $modules;
        }
        return $sorted;
    }
private static function SortByNavIndex ( array & $ result ) { $ sorted = array ( ) ; foreach ( $ result as $ bundle => $ modules ) { ksort ( $ modules ) ; $ sorted [ $ bundle ] = $ modules ; } return $ sorted ; }
Sorts the the navigation items by index
Sorts the the navigation items by index