Sorting the default listing

From: <Stephen discussions microsoft com>
Subject: Sorting the default listing SiteDirectory/Pages/categoryresults.as
Date: Tue, 26 Jun 2007 10:23:01 -0700
Newsgroups: microsoft.public.sharepoint.portalserver

I have a site directory and the listing has been customized. I have added additional sorting criteria which can be clicked on after the initial load but i would like the first load of the list to be sorted by title.

I have tried editing the XSL with the editor and chaning the following in the correct locations but it is still not working.
     <xsl:param name="dvt_adhocmode">sort</xsl:param>
     <xsl:param name="dvt_sortfield">Title</xsl:param>
     <xsl:param name="dvt_sortdir">asc</xsl:param>

Any ideas?
Thank you ahead of time.
-Stephen

**************************************

From: <Stephen
Subject: RE: Sorting the default listing SiteDirectory/Pages/categoryresults.as
Date: Tue, 26 Jun 2007 11:07:04 -0700
Newsgroups: microsoft.public.sharepoint.portalserver

I should also add when editing the webpart i only have the XSL editor and paramenters editor to modify the contents of the web part itself.

-Stephen

**************************************

From: <Stephen
Subject: RE: Sorting the default listing SiteDirectory/Pages/categoryresults.as
Date: Tue, 26 Jun 2007 11:24:01 -0700
Newsgroups: microsoft.public.sharepoint.portalserver

Figured it out: Needed to add the following:

<xsl:sort select="@Title" order="ascending" />

into  the area:

    <xsl:template name="dvt_1.body">
       <xsl:param name="Rows"/>
       <xsl:param name="FirstRow"/>
       <xsl:param name="LastRow"/>
       <xsl:for-each select="$Rows">

       </...>

End slug

Posted using BlogJet

Published Saturday, July 21, 2007 3:32 PM by OBTS