From: Shiva P. <sh...@us...> - 2002-11-11 23:10:08
|
I should have read ALL the documentation: sorted ( [ ATTR_LIST ] ) Return a list of Net::LDAP::Entry objects, sorted by the attributes given in ATTR_LIST. The attributes are compared in the order specified, each only being compared if all the prior attributes compare equal. If all the specified attributes compare equal then the DN is used to determine order. From the Net::LDAP::Entry page on CPAN. Shiva Persaud AIX Security Developer Phone: 512-838-1193 sh...@us... |---------+-----------------------------------------> | | Shiva Persaud/Austin/IBM@IBMUS| | | Sent by: | | | per...@li...ur| | | ceforge.net | | | | | | | | | 11/11/2002 04:46 PM | | | Please respond to Shiva | | | Persaud | | | | |---------+-----------------------------------------> >------------------------------------------------------------------------------------------------------------------------------| | | | To: per...@li... | | cc: | | Subject: Sorting the results of search. | | | | | >------------------------------------------------------------------------------------------------------------------------------| The ldapsearch command allows you to specify an attribute to sort search reults by via the -S flag. Does perl-ldap search let you sort your return results (thus putting the work on the ldap server)? If not, what would be the best way to sort the results myself? Shiva Persaud AIX Security Developer Phone: 512-838-1193 sh...@us... ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf |