Is there anyway to sort a set of records by their “last modified” property?
The problem is I couldn’t get “sort by” to take in “tf:getLastModified($a)” as its parameter.
Thanks.
Hi,
are you looking for somethink like:
declare namespace tf = “http://namespaces.softwareag.com/tamino/TaminoFunction”
for $a in input()/A
let $lm :=tf:getLastModified(root($a))
return {$a} sort by (./@lastmodified)
Regards
Harald