fix bug #3903 and retaing ORDER BY preference when ORDER BY clause in query without backquoting

Signed-off-by: Smita Kumari <kumarismita62@gmail.com>