Bug fix #4245

Bug fix #4245 (http://sourceforge.net/p/phpmyadmin/bugs/4245/)

synchronizing message(query) with the table sorting order