diff --git a/src/Lavary/Menu/Builder.php b/src/Lavary/Menu/Builder.php
index <HASH>..<HASH> 100644
--- a/src/Lavary/Menu/Builder.php
+++ b/src/Lavary/Menu/Builder.php
@@ -466,7 +466,7 @@ class Builder
     public function sortBy($sort_by, $sort_type = 'asc')
     {
         if (is_callable($sort_by)) {
-            $rslt = call_user_func($sort_by, $this->items->to[]);
+            $rslt = call_user_func($sort_by, $this->items->toArray());
 
             if (!is_array($rslt)) {
                 $rslt = array($rslt);
Fix bug introduced by docblock cleanup

Docblock cleanup c9be1d2e<I>cde4c<I>c<I>d<I> introduced a bug when converting `toArray()` to `to[]`