Hello Julien, with FETP 1.0.1, you have to use something like
sortBy 'store.getTiddlerText(tiddler.title+"::customSlice")' descending But also, see my pre-release of FETP 1.2.4 [1], it introduces new helpers .getSlice and .getSection to the Tiddler object, so you can use it like this: sortBy 'tiddler.getSlice("customSlice")' descending or sortBy 'tiddler.getSlice("customSlice","")' descending The latter usage if for the situation when the slice can be not defined in one of the tiddlers you are aggregating (the thing is, the sorting has unpredictable behaviour when the sortBy expression returns undefined or null even for one tiddler). Best regards, Yakov. [1] https://groups.google.com/forum/#!topic/tiddlywikidev/DSl1wALn9lo пятница, 18 июля 2014 г., 13:08:12 UTC+4 пользователь julien23 написал: > > Hi all > > You could help me sorting FET by slice here : > https://groups.google.com/d/topic/tiddlywiki/i3-EnWFmFjc/discussion > > with : > >> sortBy 'tiddler.title+"::customSlice"' descending >> >> > It looks that it does not work if customSlice is dynamic. > I am trying below to sort Errors by the last time it occured in a Log. > > I get not visible error, but sorting is wrong. > > Can you please help me ? > > Regards > > Julien > > > [[Errors]] > > ... > > <<tiddler [[FetErrorsTagTag]] with:{{tiddler.title}}{{tiddler.title}}>> > > ... >> > > [[FetErrorsTagTag]] > > <<forEachTiddler >> where >> 'tiddler.tags.contains("$1") && tiddler.tags.contains("$2") && >> !tiddler.tags.contains("attachment") && !tiddler.tags.contains("Trash")&& >> !tiddler.tags.contains("hidden")' >> sortBy >> 'tiddler.title+"::LastSeen"' >> ascending >> write >> '((index == 0) ? >> "|borderless|k\n|LastSeen<br$)DPMO|Description|Todo|h\n" : >> "\n")+"|<<tiddler [["+tiddler.title+"::LastSeen]]$))<<tiddler >> [["+tiddler.title+"::DPMO]]$))|[["+tiddler.title+"|"+tiddler.title+"]] >> ("+store.getValue(tiddler,"alias")+")<br$)<<tiddler >> [["+tiddler.title+"##Description]]$))|<<tiddler >> [["+tiddler.title+"##Todo]]$))|"' >> >> >> > > [[ConfusedVectorError]] #Errors > > ... >> |DPMO|252883| >> |LastSeen|<<tiddler FetLastSeenSlice with: cvErr>>| >> ... >> > > [[FetLastSeenSlice]] > > <<forEachTiddler >> where >> 'tiddler.text.contains("|$1|") && >> !tiddler.text.contains("|$1|0|") && !tiddler.tags.contains("attachment") >> && !tiddler.tags.contains("Hidden")' >> sortBy >> tiddler.created >> descending >> write >> '((index == 1) ? tiddler.created.formatString("YYYY-0MM-0DD") : >> "")' >> >> >> > > > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.