[#46638817] Fix search by order for MySQL support
Merge pull request #157 from llh1/46638817_search_blows_up_with_mysql_support

[#46638817] Fix search by order for MySQL support