[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: multivalued sorting (ITS#3650)
The definition of sorting can be quite vague, since different criteria may
result from specific requirements; from ldap_sort(3):
NOTES
The ldap_sort_entries() routine applies the comparison function to
each value of the attribute in the array as returned by a call to
ldap_get_values(3), until a mismatch is found. This works fine
for single-valued attributes, but may produce unexpected results
for
multi-valued attributes. When sorting by DN, the comparison
function is applied to an exploded version of the DN, without
types. The
return values for all of these functions are declared in the
<ldap.h> header file. Some routines may dynamically allocate
memory.
Callers are responsible for freeing such memory using the supplied
deallocation routines.
In short: the issue is known and documented. In any case, since sorting
is performed at the client's side, you should write your own sorting
procedure if the default one doesn't fit your needs.
p.
PS: By the way, I think your report is putting a tombstone on the
discussion abour server side sorting as well.
--
Pierangelo Masarati
mailto:pierangelo.masarati@sys-net.it
SysNet - via Dossi,8 27100 Pavia Tel: +390382573859 Fax: +390382476497