Skip to content

Marc D Anderson's Blog

  • Home
  • Speaking
  • Books
  • About
  • Contact
  • Sympraxis Consulting
  • Privacy Policy
Facebook X Linkedin Github
Marc D Anderson's Blog

xsl:sort

SharePoint

Sorting in a DVWP by a Column in Another List

ByMarc D Anderson March 11, 2009April 15, 2009

This is something that I’ve tried to solve many times and each time I’ve ended up doing something more complicated than I’ve needed to, but I knew would work.  I finally bit the bullet and solved it the right way. Here’s the scenario: You have a primary list with many items in it One of…

Read More Sorting in a DVWP by a Column in Another ListContinue

SharePoint

Sorting Displays in Data View Web Parts

ByMarc D Anderson December 16, 2008January 2, 2011

I figured out a great little trick for sorting a DVWP-based display based on a column name passed in the Query String.  You can see this in action in the default All Items or All Documents views in lists or libraries.  When you click on the column headers that allow sorting, the browser is sent…

Read More Sorting Displays in Data View Web PartsContinue

SharePoint

Sorting by Number in DVWPs

ByMarc D Anderson May 7, 2008February 4, 2009

If you set up a sort in a DVWP that has an aggregate Data Source, you’ll need to use the <xsl:sort> tag.  If you want to sort by a list column that is numeric, the tag: <xsl:sort select=”@JobFamilyRank” order=”ascending”/> will sort your data like: 1, 10, 11, 12, 2, 20, 21, 3…  That is, SharePoint…

Read More Sorting by Number in DVWPsContinue

Need help with the SharePoint Framework (SPFx), Learning Pathways, or PnP Modern Search? Our 1-Hour Jumpstarts may be for you!

Recent Comments

  • Julian on Enabling Global Navigation in the SharePoint Home Site
  • Définir le lien de partage par défaut sur "Seules les personnes disposant d'un accès existant" - M365 FR on Setting the Sharing Link Default to ‘Only people with existing access’
  • Anonymous on Using Content Types in SharePoint’s Site Pages Library
  • Pontus on Setting the Sharing Link Default to ‘Only people with existing access’
  • Katherine Schaffer-Quirand on Using Content Types in SharePoint’s Site Pages Library

Series

  • SharePoint Online Search Isn't Displaying What I Expect (2)
  • Sympraxis Client Side Development Pipeline (2)
  • Looping Through Content in a SharePoint 2013 Site Workflow (4)
  • Single-Page Applications (SPAs) in SharePoint Using SPServices (4)
  • SPServices Stories (21)
  • Moving from SPServices to REST (6)
  • Create a Simple SharePoint 2013 Employee Directory on Office365 (5)
  • Unlocking the Mysteries of Data View Web Part XSL Tags (21)

© 2025 Marc D Anderson's Blog - WordPress Theme by Kadence WP

Scroll to top
  • Home
  • Speaking
  • Books
  • About
  • Contact
  • Sympraxis Consulting
  • Privacy Policy