Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListXSL file SortXSL file Sort
Previous
 
Next
New Post
8/3/2006 12:40 PM
 

I am trying to get a custom XSL file to work but I can't figure out the sorting.  I have a field called "Sort" and when I try to do the following it doesn't work.

Can someone tell me how to format it so it will?

 

<xsl:for-each select="//udt:Fields">

<!--Show the photo and adds a td-->

<xsl:sort select="Sort" order="ascending"/>

 
New Post
8/3/2006 4:49 PM
 

please use this fragment for sorting:

<xsl:for-each select="//udt:Data">

<!--Show the photo and adds a td-->

<xsl:sort select="UDT:Sort" order="ascending"/>


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
8/25/2006 1:40 PM
 

<xsl:sort select="udt:Sort" order="ascending"/> lowercase !  

 
New Post
3/19/2008 5:07 PM
 

Brilliant, thanks for this, just what I was looking for.

For the benefit of anyone else who wants to know how to sort multiple fields, simply put a few of these in the order required, eg:

<xsl:sort select="udt:FirstFieldToSortBy" />
<xsl:sort select="udt:SecondFieldToSortBy"  />

etc


Tim NetPotential www.netpotential.co.nz
 
New Post
2/9/2009 5:59 PM
 

I did this and sorted a column that is type integer <xsl:sort select="udt:Square_x0020_Ft." order="ascending"/>

And it works for the most part. But it is just sorting by the first number...so lets say I have the numbers 500, 400, 300, and 40. It would sort them correctly except it would put 40 in front of 300. Any ideas? It's treating it like a string even though it is an interger column.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListXSL file SortXSL file Sort


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out