fix sorting for columns containing zeroes and blanks