Take the 2-minute tour ×
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?

Iknow in Active Directory (where I sync my users from) there is a whenCreated attribute, but is there anything similar in SharePoint?

share|improve this question
add comment

2 Answers

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
    
To add to this, if you have an AD attribute you can map it to a User Profile Property, create a Managed Property mapped to that User Profile Property and then use the name of the Managed Property for the sort above :) –  Robert Lindgren Feb 26 at 16:45
add comment

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
add comment

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.