diff --git a/src/services/PartsKit.php b/src/services/PartsKit.php index 2d73bf2..1c69fed 100644 --- a/src/services/PartsKit.php +++ b/src/services/PartsKit.php @@ -112,7 +112,7 @@ public static function getNav(): array continue; } - $parentNode->children[] = $node; + array_unshift($parentNode->children, $node); unset($result[$node->path]); }