{"action":"created","issue":{"url":"https://api.github.com/repos/balderdashy/waterline-sequel/issues/51","labels_url":"https://api.github.com/repos/balderdashy/waterline-sequel/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/balderdashy/waterline-sequel/issues/51/comments","events_url":"https://api.github.com/repos/balderdashy/waterline-sequel/issues/51/events","html_url":"https://github.com/balderdashy/waterline-sequel/pull/51","id":76167496,"number":51,"title":"Fix invalid SQL for empty sort hash","user":{"login":"anotherpit","id":222219,"avatar_url":"https://avatars.githubusercontent.com/u/222219?v=3","gravatar_id":"","url":"https://api.github.com/users/anotherpit","html_url":"https://github.com/anotherpit","followers_url":"https://api.github.com/users/anotherpit/followers","following_url":"https://api.github.com/users/anotherpit/following{/other_user}","gists_url":"https://api.github.com/users/anotherpit/gists{/gist_id}","starred_url":"https://api.github.com/users/anotherpit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anotherpit/subscriptions","organizations_url":"https://api.github.com/users/anotherpit/orgs","repos_url":"https://api.github.com/users/anotherpit/repos","events_url":"https://api.github.com/users/anotherpit/events{/privacy}","received_events_url":"https://api.github.com/users/anotherpit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-13T23:57:48Z","updated_at":"2015-05-14T13:12:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/balderdashy/waterline-sequel/pulls/51","html_url":"https://github.com/balderdashy/waterline-sequel/pull/51","diff_url":"https://github.com/balderdashy/waterline-sequel/pull/51.diff","patch_url":"https://github.com/balderdashy/waterline-sequel/pull/51.patch"},"body":"Hash is valid value for `sort()`. Thus, empty hash is valid value for `sort()` as well. But it produces SQL like that: `... ORDER B`, which certainly is not valid. This PR fixes the issue."},"comment":{"url":"https://api.github.com/repos/balderdashy/waterline-sequel/issues/comments/102031019","html_url":"https://github.com/balderdashy/waterline-sequel/pull/51#issuecomment-102031019","issue_url":"https://api.github.com/repos/balderdashy/waterline-sequel/issues/51","id":102031019,"user":{"login":"devinivy","id":3150233,"avatar_url":"https://avatars.githubusercontent.com/u/3150233?v=3","gravatar_id":"","url":"https://api.github.com/users/devinivy","html_url":"https://github.com/devinivy","followers_url":"https://api.github.com/users/devinivy/followers","following_url":"https://api.github.com/users/devinivy/following{/other_user}","gists_url":"https://api.github.com/users/devinivy/gists{/gist_id}","starred_url":"https://api.github.com/users/devinivy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devinivy/subscriptions","organizations_url":"https://api.github.com/users/devinivy/orgs","repos_url":"https://api.github.com/users/devinivy/repos","events_url":"https://api.github.com/users/devinivy/events{/privacy}","received_events_url":"https://api.github.com/users/devinivy/received_events","type":"User","site_admin":false},"created_at":"2015-05-14T13:12:23Z","updated_at":"2015-05-14T13:12:23Z","body":"Do you mind writing a failing test for this?  I'm having trouble understanding precisely what case this fixes."}}