Re: ldap_search sort extension, patch included

From: Date: Wed, 21 Nov 2001 20:24:17 +0000
Subject: Re: ldap_search sort extension, patch included
References: 1 2 3 4 5 6 7  Groups: php.dev php.general 
Request: Send a blank email to php-dev+get-71302@lists.php.net to get a copy of this message
I've now added ldap_sort(), please test. After you've done $sr=ldap_search($ds, ... you simply do ldap_sort($ds, $sr, "cn"); or something like that, and your results will be sorted. It returns TRUE on success, else FALSE. Also note that empty string "" as sort filter will give sorting on DN. I won't add a 4th optional compare parameter unless there's a real demand. Okay? Stig

« previous php.dev (#71302) next »