On Friday, August 01, 2003, at 02:11PM, Graham Barr <[EMAIL PROTECTED]> wrote: >On Thursday, Jul 31, 2003, at 22:55 US/Pacific, Chris Ridd wrote: >> The sorted method just takes an array of attributes, not a reference >> to an array! >> >> my @sort = ($searchresult->sorted("sn", "givenName")); >> >> In that page of the documentation the square brackets indicate the >> list is optional; with no list the method sorts by DN. > >I can see how that might be confusing. Maybe we should add a few >examples to the sorted entry
The style we've used on the main Net::LDAP pod uses a separate entry for the no-arguments case. If we wanted to stick with that style, we'd change the Net::LDAP::Search pod to something like: =item sorted Returns the list of entries sorted by DN. =item sorted ( ATTR, ... ) Returns the list of entries sorted by the given attributes. Examples are still useful! >Graham. >[who is supposed to be on vacation] :-) Cheers, Chris