fix: query order by
Merge pull request #915 from nabinhait/hotfix

fix: query order by