public function sort(array $categoriesOrder) { if ($this->sortCategoriesTree($categoriesOrder)) { $this->categoryObjectManager->flush(); return true; } return false; }