Bug #4245 fix

#4245 initial "Browse" query does not match sorting order
(https://sourceforge.net/p/phpmyadmin/bugs/4245/)

Now sorted query and table are displayed always when a default query is executed. This won't break the ui behaviour. 

There were some unit test failures because new code uses attributes like $default['conf']['Server'] and in the test code these are not defined. I had to define them in the setup() function. Number of function calls has been increased from 1 to 2 in one function. I had to change from "once()" to "exactly(2)" in one test case.