Hello,
I am trying to get TiddlyWiki to organize notes in topic-tiddlers
alphabetically in a TiddlyWiki called 'My Notes'. As of now, every
new note added to a topic seems to randomly change the alphabetical
order of previously entered notes. I am using Firefox 3.0
The code in the relevant topic-tiddler looks like this:
<<forEachTiddler
where 'tiddler != context.inTiddler &&
tiddler.tags.contains(context.inTiddler.title)'
sortBy 'GroupTitle = tiddler.data("notetopic")
+"###"+tiddler.data("booktitle")'
script 'function getGroupTitle(tiddler, context) {
if ( (context.lastGroup != "no subtopics") && (!context.lastGroup
|| context.lastGroup != tiddler.data("notetopic")))
{
context.lastGroup = tiddler.data("notetopic");
if (!context.lastGroup || context.lastGroup == "")
context.lastGroup = "no subtopics";
return "!! "+context.lastGroup+"\n";
} else return "";}'
write
'getGroupTitle(tiddler, context)+"** [["+tiddler.title+"]]\n"'
>>
If anyone could help me, I would be most grateful. If more
information is required, I apologize for not having provided it it
this post.
Thank you,
Sumangalo
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---