Doris always put null in the first when sorting key, the parameter null_first of encode_keys is useless.