From: Graham B. <gb...@po...> - 2001-02-14 23:41:24
|
First off be warned that ->sorted does a simple byte-wise compare. Right now it can only sort on a single attribute too. So to order on sn $mesg = $ldap->search(...); @entries = $mesg->sorted('sn'); Of course you need to handle errors by checking $mesg->code too. Graham. On Wed, Feb 14, 2001 at 04:12:52PM -0700, Tina Sweet wrote: > Does anyone have an example of how to use the sorted method of > LDAP::search?? I have all the entries returned form the search , now I want > to sort all entries by sn and givenName. I have tried everything and > cannot get close. > Thanks > ************************************************ > * Tina M. Sweet NIS-8 > * Nonproliferation and International Security > * Nonproliferation & International Technology > * Los Alamos National Laboratory > * Phone: (505)665-9581 > * Fax: (505)665-2274 > * email: ts...@la... > ************************************************ > > > |