Force str order in queries