Fix reverse sorting of columns