Using vints will mess up the sort order, so we can't do this. Make sure that you treat the byte value count of nulls as unsigned by anding with 0xFF.