has_many through obeys order on through association

fixes #10016
Merge pull request #10087 from neerajdotname/10016

has_many through obeys order on through association