fixes in reorder active record query [skip ci]
Merge branch 'master' of github.com:peeyushsingla/rails