my @entries = $result->entries;
my @sorted = sort { $a->get_value('attr') cmp $b->get_value('attr') } @entries;
foreach ....
Ian
On Tuesday, June 17, 2003, at 03:15 AM, John Woodell wrote:
Greetings,
I'm looking for some sample code that illustrates sorting an array of entries by one of the attributes.
OpenLDAP doesn't seem to want to deal with LDAP_CONTROL_SORTREQUEST or LDAP_CONTROL_SORTRESULT
my @entries = $result->entries; # hmm foreach $entr ( @entries ) { print $entr->get_value("cn")."\n"; }
