SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

Have a look at the following post:

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

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 '14 at 16:45

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" />


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

Your Answer


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.