{"action":"closed","issue":{"url":"https://api.github.com/repos/edwardhotchkiss/mongoose-paginate/issues/60","labels_url":"https://api.github.com/repos/edwardhotchkiss/mongoose-paginate/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/edwardhotchkiss/mongoose-paginate/issues/60/comments","events_url":"https://api.github.com/repos/edwardhotchkiss/mongoose-paginate/issues/60/events","html_url":"https://github.com/edwardhotchkiss/mongoose-paginate/issues/60","id":106179013,"number":60,"title":"Rename sortBy to sort","user":{"login":"surdu","id":11520795,"avatar_url":"https://avatars.githubusercontent.com/u/11520795?v=3","gravatar_id":"","url":"https://api.github.com/users/surdu","html_url":"https://github.com/surdu","followers_url":"https://api.github.com/users/surdu/followers","following_url":"https://api.github.com/users/surdu/following{/other_user}","gists_url":"https://api.github.com/users/surdu/gists{/gist_id}","starred_url":"https://api.github.com/users/surdu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/surdu/subscriptions","organizations_url":"https://api.github.com/users/surdu/orgs","repos_url":"https://api.github.com/users/surdu/repos","events_url":"https://api.github.com/users/surdu/events{/privacy}","received_events_url":"https://api.github.com/users/surdu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-12T19:12:26Z","updated_at":"2015-09-23T09:29:34Z","closed_at":"2015-09-23T09:29:34Z","body":"Chased a bug for an hour, then I realised that this library has a different name for sort (`sortBy`) than I'm used to from mongoose (`sort`).\r\n\r\nIn order to prevent backward incompatibility with older paginate versions, you could make `sortBy` an alias for `sort` that will additionally throw a deprecation warning in the console.\r\n\r\nIf it's ok with you, I could implement this myself."}}