Fixed ORDER BY cause in SELECT command.

Fixed ORDER BY cause in SELECT command.