sort bug fix on MySql