Unconvered bug with sorting syntax