{"action":"created","issue":{"url":"https://api.github.com/repos/20TRIES/filterable/issues/14","repository_url":"https://api.github.com/repos/20TRIES/filterable","labels_url":"https://api.github.com/repos/20TRIES/filterable/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/20TRIES/filterable/issues/14/comments","events_url":"https://api.github.com/repos/20TRIES/filterable/issues/14/events","html_url":"https://github.com/20TRIES/filterable/issues/14","id":184678811,"number":14,"title":"[1.0] Implement Ordering Adaptor","user":{"login":"20TRIES","id":5886624,"avatar_url":"https://avatars.githubusercontent.com/u/5886624?v=3","gravatar_id":"","url":"https://api.github.com/users/20TRIES","html_url":"https://github.com/20TRIES","followers_url":"https://api.github.com/users/20TRIES/followers","following_url":"https://api.github.com/users/20TRIES/following{/other_user}","gists_url":"https://api.github.com/users/20TRIES/gists{/gist_id}","starred_url":"https://api.github.com/users/20TRIES/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/20TRIES/subscriptions","organizations_url":"https://api.github.com/users/20TRIES/orgs","repos_url":"https://api.github.com/users/20TRIES/repos","events_url":"https://api.github.com/users/20TRIES/events{/privacy}","received_events_url":"https://api.github.com/users/20TRIES/received_events","type":"User","site_admin":false},"labels":[{"id":457575977,"url":"https://api.github.com/repos/20TRIES/filterable/labels/feature","name":"feature","color":"0052cc","default":false}],"state":"closed","locked":false,"assignee":{"login":"20TRIES","id":5886624,"avatar_url":"https://avatars.githubusercontent.com/u/5886624?v=3","gravatar_id":"","url":"https://api.github.com/users/20TRIES","html_url":"https://github.com/20TRIES","followers_url":"https://api.github.com/users/20TRIES/followers","following_url":"https://api.github.com/users/20TRIES/following{/other_user}","gists_url":"https://api.github.com/users/20TRIES/gists{/gist_id}","starred_url":"https://api.github.com/users/20TRIES/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/20TRIES/subscriptions","organizations_url":"https://api.github.com/users/20TRIES/orgs","repos_url":"https://api.github.com/users/20TRIES/repos","events_url":"https://api.github.com/users/20TRIES/events{/privacy}","received_events_url":"https://api.github.com/users/20TRIES/received_events","type":"User","site_admin":false},"assignees":[{"login":"20TRIES","id":5886624,"avatar_url":"https://avatars.githubusercontent.com/u/5886624?v=3","gravatar_id":"","url":"https://api.github.com/users/20TRIES","html_url":"https://github.com/20TRIES","followers_url":"https://api.github.com/users/20TRIES/followers","following_url":"https://api.github.com/users/20TRIES/following{/other_user}","gists_url":"https://api.github.com/users/20TRIES/gists{/gist_id}","starred_url":"https://api.github.com/users/20TRIES/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/20TRIES/subscriptions","organizations_url":"https://api.github.com/users/20TRIES/orgs","repos_url":"https://api.github.com/users/20TRIES/repos","events_url":"https://api.github.com/users/20TRIES/events{/privacy}","received_events_url":"https://api.github.com/users/20TRIES/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/20TRIES/filterable/milestones/1","html_url":"https://github.com/20TRIES/filterable/milestones/1.0.0","labels_url":"https://api.github.com/repos/20TRIES/filterable/milestones/1/labels","id":2056597,"number":1,"title":"1.0.0","description":"First stable release.","creator":{"login":"20TRIES","id":5886624,"avatar_url":"https://avatars.githubusercontent.com/u/5886624?v=3","gravatar_id":"","url":"https://api.github.com/users/20TRIES","html_url":"https://github.com/20TRIES","followers_url":"https://api.github.com/users/20TRIES/followers","following_url":"https://api.github.com/users/20TRIES/following{/other_user}","gists_url":"https://api.github.com/users/20TRIES/gists{/gist_id}","starred_url":"https://api.github.com/users/20TRIES/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/20TRIES/subscriptions","organizations_url":"https://api.github.com/users/20TRIES/orgs","repos_url":"https://api.github.com/users/20TRIES/repos","events_url":"https://api.github.com/users/20TRIES/events{/privacy}","received_events_url":"https://api.github.com/users/20TRIES/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":5,"state":"open","created_at":"2016-10-08T16:42:01Z","updated_at":"2016-11-06T14:30:17Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2016-10-23T08:54:43Z","updated_at":"2016-11-13T13:25:36Z","closed_at":"2016-10-23T10:07:22Z","body":"Should be able to add an \"orderings\" method to a request that contains the different orderings that can be applied to a request.\n\nThe ordering configuration should support the following:\n- [x] Order using query scope with parameters\n\n```\npublic function orderings() {\n    return [\n        'highest-rated' => ['orderBy', 'rating', 'desc'],\n    ];\n}\n```\n- [x] Order directly by anonymous query scope\n\n```\npublic function orderings() {\n    return [\n        'highest-rated' => function ($query) {\n            return $query;\n        },\n    ];\n}\n```\n"},"comment":{"url":"https://api.github.com/repos/20TRIES/filterable/issues/comments/260186097","html_url":"https://github.com/20TRIES/filterable/issues/14#issuecomment-260186097","issue_url":"https://api.github.com/repos/20TRIES/filterable/issues/14","id":260186097,"user":{"login":"20TRIES","id":5886624,"avatar_url":"https://avatars.githubusercontent.com/u/5886624?v=3","gravatar_id":"","url":"https://api.github.com/users/20TRIES","html_url":"https://github.com/20TRIES","followers_url":"https://api.github.com/users/20TRIES/followers","following_url":"https://api.github.com/users/20TRIES/following{/other_user}","gists_url":"https://api.github.com/users/20TRIES/gists{/gist_id}","starred_url":"https://api.github.com/users/20TRIES/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/20TRIES/subscriptions","organizations_url":"https://api.github.com/users/20TRIES/orgs","repos_url":"https://api.github.com/users/20TRIES/repos","events_url":"https://api.github.com/users/20TRIES/events{/privacy}","received_events_url":"https://api.github.com/users/20TRIES/received_events","type":"User","site_admin":false},"created_at":"2016-11-13T13:25:36Z","updated_at":"2016-11-13T13:25:36Z","body":"This is no longer going to be available in version 1.0"}}
{"actor":{"display_login":"20TRIES"}}