Sorting with empty fields

68 views
Skip to first unread message

tobaisch

unread,
Jan 4, 2018, 5:19:16 PM1/4/18
to TiddlyWiki
Hello,
when sorting (for example, by Date field up), the empty fields are always listed before the sorted list.
What options are there to put these empty fields always at the end of the sort list.

Attention: I do not want to exclude the empty fields from the sort!
Thanks
Regards
Tob

Mark S.

unread,
Jan 4, 2018, 6:01:25 PM1/4/18
to TiddlyWiki
I would do this with two filter runs. The first part of the run sorts by the specified criteria if it exists. The 2nd part just appends the tiddlers that don't have values.

 For instance, using TiddlyWiki.com for sample data, this:

<<list-links "[tag[HelloThere]has[created]sort[created]] [tag[HelloThere]!has[created]]">>

gives

    Examples
    What happened to the original TiddlyWiki?
    Some of the things you can do with TiddlyWiki
    Discover TiddlyWiki
    A Gentle Guide to TiddlyWiki
    Ten reasons to switch to TiddlyWiki

After deleting the created field from "A Gentle Guide to TiddlyWiki" and "Ten reasons to switch to TiddlyWiki"

-- Mark

tobaisch

unread,
Jan 4, 2018, 9:36:35 PM1/4/18
to TiddlyWiki
It works.
Thank you very much.

Again, something learned. :)

Regards
Tob
Reply all
Reply to author
Forward
0 new messages