Fixed sorting of columns