{"action":"created","issue":{"url":"https://api.github.com/repos/sequelize/sequelize/issues/4146","labels_url":"https://api.github.com/repos/sequelize/sequelize/issues/4146/labels{/name}","comments_url":"https://api.github.com/repos/sequelize/sequelize/issues/4146/comments","events_url":"https://api.github.com/repos/sequelize/sequelize/issues/4146/events","html_url":"https://github.com/sequelize/sequelize/issues/4146","id":95870271,"number":4146,"title":"findAndCountAll with order, limit and offset returns wrong result ","user":{"login":"beeant","id":162004,"avatar_url":"https://avatars.githubusercontent.com/u/162004?v=3","gravatar_id":"","url":"https://api.github.com/users/beeant","html_url":"https://github.com/beeant","followers_url":"https://api.github.com/users/beeant/followers","following_url":"https://api.github.com/users/beeant/following{/other_user}","gists_url":"https://api.github.com/users/beeant/gists{/gist_id}","starred_url":"https://api.github.com/users/beeant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beeant/subscriptions","organizations_url":"https://api.github.com/users/beeant/orgs","repos_url":"https://api.github.com/users/beeant/repos","events_url":"https://api.github.com/users/beeant/events{/privacy}","received_events_url":"https://api.github.com/users/beeant/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sequelize/sequelize/labels/bug","name":"bug","color":"d7e102"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-07-19T00:07:54Z","updated_at":"2015-07-29T11:13:16Z","closed_at":null,"body":"when I use findAndCountAll, it seems that the ordering is not the same on different pages (limit, offset)"},"comment":{"url":"https://api.github.com/repos/sequelize/sequelize/issues/comments/125921478","html_url":"https://github.com/sequelize/sequelize/issues/4146#issuecomment-125921478","issue_url":"https://api.github.com/repos/sequelize/sequelize/issues/4146","id":125921478,"user":{"login":"beeant","id":162004,"avatar_url":"https://avatars.githubusercontent.com/u/162004?v=3","gravatar_id":"","url":"https://api.github.com/users/beeant","html_url":"https://github.com/beeant","followers_url":"https://api.github.com/users/beeant/followers","following_url":"https://api.github.com/users/beeant/following{/other_user}","gists_url":"https://api.github.com/users/beeant/gists{/gist_id}","starred_url":"https://api.github.com/users/beeant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beeant/subscriptions","organizations_url":"https://api.github.com/users/beeant/orgs","repos_url":"https://api.github.com/users/beeant/repos","events_url":"https://api.github.com/users/beeant/events{/privacy}","received_events_url":"https://api.github.com/users/beeant/received_events","type":"User","site_admin":false},"created_at":"2015-07-29T11:13:16Z","updated_at":"2015-07-29T11:13:16Z","body":"Ya that's true, when we think in that sense that f hasMany associations. i want to sort it accoriding to the first associated modelB.\r\n\r\nEven this is kind of weird, I wonder why it works with findAll"}}