{"action":"opened","issue":{"url":"https://api.github.com/repos/mongodb-js/mongoose-autopopulate/issues/13","labels_url":"https://api.github.com/repos/mongodb-js/mongoose-autopopulate/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/mongodb-js/mongoose-autopopulate/issues/13/comments","events_url":"https://api.github.com/repos/mongodb-js/mongoose-autopopulate/issues/13/events","html_url":"https://github.com/mongodb-js/mongoose-autopopulate/issues/13","id":119410013,"number":13,"title":"Sort autopopulate","user":{"login":"freynolds","id":2458554,"avatar_url":"https://avatars.githubusercontent.com/u/2458554?v=3","gravatar_id":"","url":"https://api.github.com/users/freynolds","html_url":"https://github.com/freynolds","followers_url":"https://api.github.com/users/freynolds/followers","following_url":"https://api.github.com/users/freynolds/following{/other_user}","gists_url":"https://api.github.com/users/freynolds/gists{/gist_id}","starred_url":"https://api.github.com/users/freynolds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freynolds/subscriptions","organizations_url":"https://api.github.com/users/freynolds/orgs","repos_url":"https://api.github.com/users/freynolds/repos","events_url":"https://api.github.com/users/freynolds/events{/privacy}","received_events_url":"https://api.github.com/users/freynolds/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-30T02:52:11Z","updated_at":"2015-11-30T02:52:11Z","closed_at":null,"body":"Hi I was wondering if I could sort the people array people with a parameter or something?\r\n\r\nvar Town = new Schema({\r\n\tcountry: {type: ObjectId, ref: 'Country'},\r\n\tname: String,\r\n\tpeople: {type: [{type: ObjectId, ref: 'People'}], autopopulate: true}\r\n}, { collection: 'town'});"}}