AVA_Sort function in slapd/dn.c