{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/nova-issues/issues/461","repository_url":"https://api.github.com/repos/laravel/nova-issues","labels_url":"https://api.github.com/repos/laravel/nova-issues/issues/461/labels{/name}","comments_url":"https://api.github.com/repos/laravel/nova-issues/issues/461/comments","events_url":"https://api.github.com/repos/laravel/nova-issues/issues/461/events","html_url":"https://github.com/laravel/nova-issues/issues/461","id":357374742,"node_id":"MDU6SXNzdWUzNTczNzQ3NDI=","number":461,"title":"[Feature request] Orderable resources","user":{"login":"molteber","id":8125386,"node_id":"MDQ6VXNlcjgxMjUzODY=","avatar_url":"https://avatars2.githubusercontent.com/u/8125386?v=4","gravatar_id":"","url":"https://api.github.com/users/molteber","html_url":"https://github.com/molteber","followers_url":"https://api.github.com/users/molteber/followers","following_url":"https://api.github.com/users/molteber/following{/other_user}","gists_url":"https://api.github.com/users/molteber/gists{/gist_id}","starred_url":"https://api.github.com/users/molteber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/molteber/subscriptions","organizations_url":"https://api.github.com/users/molteber/orgs","repos_url":"https://api.github.com/users/molteber/repos","events_url":"https://api.github.com/users/molteber/events{/privacy}","received_events_url":"https://api.github.com/users/molteber/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-09-05T19:41:19Z","updated_at":"2018-09-13T13:14:08Z","closed_at":null,"author_association":"NONE","body":"A neat feature to add to Laravel Nova would be the ability to make a resource `Orderable`, and what that does is adding a drag-drop handler to the index view, giving you the option to set the order of the resource.\r\nThis can give implications regarding setting fields sortable.\r\n\r\nSay you have a resource of Best friends, ranked from 1 to infinity and beyond. This resource is orderable with a given column `order`. By default the list is sorted by the column `order`.\r\nYou have also made the field `Name` sortable. When you sort by `Name`, the handler for ordering will disappear / get disabled. Until no sorting is applied or you have sorted on `Order` again (if that meta option is added).\r\n\r\nWhen sorting on the order field, drag-n-drop moving the entries up and down should follow the direction of the sort. Ex: order sorted by asc and moving a row down should increase the order for that row. And by desc, decrease."},"comment":{"url":"https://api.github.com/repos/laravel/nova-issues/issues/comments/421002322","html_url":"https://github.com/laravel/nova-issues/issues/461#issuecomment-421002322","issue_url":"https://api.github.com/repos/laravel/nova-issues/issues/461","id":421002322,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMTAwMjMyMg==","user":{"login":"hooch","id":987814,"node_id":"MDQ6VXNlcjk4NzgxNA==","avatar_url":"https://avatars2.githubusercontent.com/u/987814?v=4","gravatar_id":"","url":"https://api.github.com/users/hooch","html_url":"https://github.com/hooch","followers_url":"https://api.github.com/users/hooch/followers","following_url":"https://api.github.com/users/hooch/following{/other_user}","gists_url":"https://api.github.com/users/hooch/gists{/gist_id}","starred_url":"https://api.github.com/users/hooch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hooch/subscriptions","organizations_url":"https://api.github.com/users/hooch/orgs","repos_url":"https://api.github.com/users/hooch/repos","events_url":"https://api.github.com/users/hooch/events{/privacy}","received_events_url":"https://api.github.com/users/hooch/received_events","type":"User","site_admin":false},"created_at":"2018-09-13T13:14:08Z","updated_at":"2018-09-13T13:14:08Z","author_association":"NONE","body":"@molteber drag and drop would definitely be preferable"}}
{"actor":{"display_login":"hooch"}}