From: Chris R. <Chr...@me...> - 2000-07-04 08:41:32
|
On Tue, 04 Jul 2000 15:23:53 +0800, wiLL wrote: > > Hello ! > > I'm working on LDAP ... and I want to know how to sort the results from > $ldap->search ? > > tnx .. > > wiLL Use sorted('cn') (or whatever attribute you want to sort on) instead of entries() on the object returned by $ldap->search(). Read the perldoc for Net::LDAP::Search to find out more. The sorted method is not strictly correct, because it doesn't do comparisons according to the directory rules. But it might suffice for you. Cheers, Chris |