Implement sorting for hdf5 table chunking.