fixed an issue where 'query' element is missing as well as a bad sort order in simple queries
fixed an issue where 'query' element is missing as well as a bad sort order in simple queries

chriszs/redash,imsally/redash,ninneko/redash,alexanderlz/redash,guaguadev/redash,44px/redash,denisov-vlad/redash,EverlyWell/redash,easytaxibr/redash,getredash/redash,ninneko/redash,pubnative/redash,crowdworks/redash,easytaxibr/redash,pubnative/redash,moritz9/redash,akariv/redash,easytaxibr/redash,guaguadev/redash,pubnative/redash,denisov-vlad/redash,pubnative/redash,M32Media/redash,akariv/redash,ninneko/redash,moritz9/redash,hudl/redash,hudl/redash,jmvasquez/redashtest,44px/redash,44px/redash,akariv/redash,EverlyWell/redash,guaguadev/redash,stefanseifert/redash,rockwotj/redash,guaguadev/redash,amino-data/redash,M32Media/redash,denisov-vlad/redash,akariv/redash,hudl/redash,rockwotj/redash,alexanderlz/redash,imsally/redash,M32Media/redash,vishesh92/redash,amino-data/redash,vishesh92/redash,stefanseifert/redash,easytaxibr/redash,denisov-vlad/redash,useabode/redash,stefanseifert/redash,moritz9/redash,getredash/redash,stefanseifert/redash,jmvasquez/redashtest,pubnative/redash,alexanderlz/redash,guaguadev/redash,imsally/redash,akariv/redash,useabode/redash,EverlyWell/redash,rockwotj/redash,getredash/redash,ninneko/redash,denisov-vlad/redash,vishesh92/redash,imsally/redash,getredash/redash,vishesh92/redash,chriszs/redash,stefanseifert/redash,crowdworks/redash,alexanderlz/redash,useabode/redash,hudl/redash,amino-data/redash,moritz9/redash,EverlyWell/redash,jmvasquez/redashtest,M32Media/redash,chriszs/redash,crowdworks/redash,jmvasquez/redashtest,44px/redash,amino-data/redash,rockwotj/redash,chriszs/redash,crowdworks/redash,useabode/redash,getredash/redash,jmvasquez/redashtest,easytaxibr/redash,ninneko/redash