It's most likely because the returned count is treated as text (it's an attribute on an XML node, so XSLT is unlikely to know that it's a number unless you tell it).
If you were to wrap the select statement in number(..) how does that affect the sort?
Sorting in xslt
When using your example i get some strange sorting. It seems to only sort on the first character in the count number.
Example: a page with 7 views is sorted higher than one with 43 views.
Im sorting like this
Am i doing something wrong or is it by design. If so how do i get it sorted correctly.
Fixed it by doing
It's most likely because the returned count is treated as text (it's an attribute on an XML node, so XSLT is unlikely to know that it's a number unless you tell it).
If you were to wrap the select statement in number(..) how does that affect the sort?
i.e. change
ViewCount:GetViews(number(@id), 'uboldcounter')//@count
to
number(ViewCount:GetViews(number(@id), 'uboldcounter')//@count)
lol too quick with the response :)
is working on a reply...