Skip to content

Commit 1a23e1f

Browse files
author
Riari
committed
Fix ordering of top-level categories (#52)
1 parent b6ffb44 commit 1a23e1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Riari/Forum/Repositories/Categories.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public function __construct(Category $model)
1111

1212
public function getAll()
1313
{
14-
return $this->model->where('parent_category', '=', null)->get();
14+
return $this->model->where('parent_category', '=', null)->orderBy('weight', 'DESC')->get();
1515
}
1616

1717
}

0 commit comments

Comments
 (0)