Adapting different SQL generation behavior of different activerecord versions

Use `scope.reorder` instead of `scope.order` to adapting different SQL
generation behavior of different activerecord version