resolved reorder issue in rails active record guide
Merge pull request #15251 from peeyushsingla/master

Reorder query in active record query of rails guide [ci skip]