{"action":"closed","issue":{"url":"https://api.github.com/repos/Riari/laravel-forum/issues/52","labels_url":"https://api.github.com/repos/Riari/laravel-forum/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/Riari/laravel-forum/issues/52/comments","events_url":"https://api.github.com/repos/Riari/laravel-forum/issues/52/events","html_url":"https://github.com/Riari/laravel-forum/issues/52","id":107537678,"number":52,"title":"Index view does not order Parent categories by Weight","user":{"login":"mydnic","id":2733767,"avatar_url":"https://avatars.githubusercontent.com/u/2733767?v=3","gravatar_id":"","url":"https://api.github.com/users/mydnic","html_url":"https://github.com/mydnic","followers_url":"https://api.github.com/users/mydnic/followers","following_url":"https://api.github.com/users/mydnic/following{/other_user}","gists_url":"https://api.github.com/users/mydnic/gists{/gist_id}","starred_url":"https://api.github.com/users/mydnic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mydnic/subscriptions","organizations_url":"https://api.github.com/users/mydnic/orgs","repos_url":"https://api.github.com/users/mydnic/repos","events_url":"https://api.github.com/users/mydnic/events{/privacy}","received_events_url":"https://api.github.com/users/mydnic/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Riari/laravel-forum/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-21T15:30:14Z","updated_at":"2015-09-21T19:06:05Z","closed_at":"2015-09-21T19:06:05Z","body":"Hi !\r\n\r\nWhen I updated the weight attribute of my ParentCategories, in my database, the changes were not reflected in the Index view (so in /forum).\r\n\r\nIf I apply this change in the package, it works fine\r\n\r\n```php\r\npublic function getAll()\r\n{\r\n    return $this->model->where('parent_category', '=', null)->orderBy('weight')->get();\r\n}\r\n```\r\n\r\nI just added ->orderBy\r\n\r\nIs this state intentional ? Is there a way to do it without modifying the package ?\r\n\r\nThanks in advance"}}