G
Guest
I am a newbie to .NET. I am coding a web part for SPS that returns all of
the users from an Active Directory tree, sorted by attribute x (in this case,
Company). This works fine.
How can I sort the results within each company by a separate criterion
(e.g., alphabetically by last name). I am sure that I could do this by
building myself a multi-dimensional array from the objects in my
searchresultcollection prior to rendering the information in my web part, but
I would think there is an easier way.
Can you perform a sort on multiple attributes using the DirectorySearcher
object? If so, where can I find an example of the syntax to accomplish this?
Thanks in advance.
Joe
the users from an Active Directory tree, sorted by attribute x (in this case,
Company). This works fine.
How can I sort the results within each company by a separate criterion
(e.g., alphabetically by last name). I am sure that I could do this by
building myself a multi-dimensional array from the objects in my
searchresultcollection prior to rendering the information in my web part, but
I would think there is an easier way.
Can you perform a sort on multiple attributes using the DirectorySearcher
object? If so, where can I find an example of the syntax to accomplish this?
Thanks in advance.
Joe