Quantcast
Channel: ActiveTopics
Viewing all articles
Browse latest Browse all 72689

Sort 2 Values

$
0
0

Hi guys, i have the following tree Node and i would like to make a sorting depending on the docType and the number of count view.

So the tree node looks like this

- FOLDER
-- Vids AB
  --Vids 3(count 10)
--Vids 4(count 6)
-- Vids BC
-- Vids 2 (count 3)
-- Vids BC
-- Vids 1(count 12)

Only the child nodes will be displayed here thought. I did try this but its not reflecting the right descending output which shoulb be

Vids 1 (count 12)
Vids 3 (count 10)
Vids 4 (count 6)
Vids 2 (count 3)

<xsl:sort select="self::DocName| ViewCount:GetViews(number(@id))//@count" order="descending"  data-type="number"/>
 <xsl:sort select="self::TerraVideoLinks|@count" order="descending"  data-type="number"/>

Both not working, 

Any suggestion??

 

 


Viewing all articles
Browse latest Browse all 72689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>