Should take care of order by expressions for some db's