Fix a NPE in column sort.