Tell me more ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I wish to display a list of new users on my sharepoint site. I've picked the People Search Core Results webpart and have a user list, but how do I order it by creation date? I know in Active Directory (where I sync my users from) there is a whenCreated attribute, but anything similar in SharePoint?

Cheres, Daniel

share|improve this question

2 Answers

I have never tried it but just something you could check out for -

You could change the XSLT of the Core results web part. Can you try adding something like this? -

 <xsl:sort select="created by" order="ascending" />

OR

Check this post from msdn where sorting and filtering is implemented by custom core results web part. You might be able to develop something similar for People search core results too.

share|improve this answer

Have a look at the following post: http://consultingblogs.emc.com/paulgalvin/archive/2008/03/10/walk-through-use-people-search-for-department-contacts.aspx

So basically, you can sort the results in the XSLT itself. By default it's sorted based on "preferredname":

    <table cellpadding="1" cellspacing="5" width="100%">
      <xsl:for-each select="All_Results/Result">
        <xsl:sort select="preferredname"/>
        <!-- Emit <tr> and <td> tags for the columns you want to show -->
      </xsl:for-each>
    </table>

Just replace the default XSLT with your custom one with the correct user profile property to sort on.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.