Fix descending order rewriting in all ordering calls.