nullstrcmp
cmp = nullstrcmp(a->keytype, b->keytype, 1);
cmp = nullstrcmp(a->input_type, b->input_type, 1);
cmp = nullstrcmp(a->input_structure, b->input_structure, 1);
cmp = nullstrcmp(a->propquery, b->propquery, 0);