removed sort expressions that are constants