Reverse order by for desc expressions

This is a fix for issue #247.