{"action":"closed","issue":{"url":"https://api.github.com/repos/tgriesser/bookshelf/issues/1578","repository_url":"https://api.github.com/repos/tgriesser/bookshelf","labels_url":"https://api.github.com/repos/tgriesser/bookshelf/issues/1578/labels{/name}","comments_url":"https://api.github.com/repos/tgriesser/bookshelf/issues/1578/comments","events_url":"https://api.github.com/repos/tgriesser/bookshelf/issues/1578/events","html_url":"https://github.com/tgriesser/bookshelf/issues/1578","id":234367915,"number":1578,"title":"orderBy discarded when calling model.collection().orderBy().fetchPage()","user":{"login":"olalonde","id":416585,"avatar_url":"https://avatars0.githubusercontent.com/u/416585?v=3","gravatar_id":"","url":"https://api.github.com/users/olalonde","html_url":"https://github.com/olalonde","followers_url":"https://api.github.com/users/olalonde/followers","following_url":"https://api.github.com/users/olalonde/following{/other_user}","gists_url":"https://api.github.com/users/olalonde/gists{/gist_id}","starred_url":"https://api.github.com/users/olalonde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olalonde/subscriptions","organizations_url":"https://api.github.com/users/olalonde/orgs","repos_url":"https://api.github.com/users/olalonde/repos","events_url":"https://api.github.com/users/olalonde/events{/privacy}","received_events_url":"https://api.github.com/users/olalonde/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-06-07T23:08:19Z","updated_at":"2017-06-14T01:31:47Z","closed_at":"2017-06-14T01:31:47Z","body":"```javascript\r\n  class Car extends bookshelf.Model {\r\n    get tableName() { return 'cars' }\r\n  }\r\n\r\n// orderBy is discarded here:\r\n    const result = await Car\r\n      .collection()\r\n      .orderBy('description')\r\n      .fetchPage()\r\n\r\n// orderBy works here:\r\n    const result = await Car\r\n      .forge()\r\n      .orderBy('description')\r\n      .fetchPage()\r\n\r\n```"}}
{"actor":{"display_login":"olalonde"}}