Skip to content

Commit

Permalink
Fixed sortBy throwing exception on closure call (#225) (#226)
Browse files Browse the repository at this point in the history
skipping the built in sorting when passing a closure to sortBy
  • Loading branch information
X-Coder authored and dustingraham committed Jul 19, 2018
1 parent 1ee9472 commit ca5f197
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Lavary/Menu/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,7 @@ public function sortBy($sort_by, $sort_type = 'asc')
}

$this->items = new Collection($rslt);
return $this;
}

// running the sort proccess on the sortable items
Expand Down

0 comments on commit ca5f197

Please sign in to comment.