OPSMN-1543: Fixed sorting of columns in wide rows