1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-12 19:20:27 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/test-toc-sorted-names.tid

26 lines
847 B
Plaintext
Raw Normal View History

created: 20240204195218153
modified: 20240208172112010
tags: testTOC
title: test-toc-sorted-names
type: text/vnd.tiddlywiki
\function name-sort() "[{!!last-name}] [{!!first-name}] +[join[, ]]"
Also see [[Talk thread about new toc-macros|https://talk.tiddlywiki.org/t/proposal-toc-macros-rewrite-using-if-functions-and-procedures-new-fuctionality/9046/32?u=pmario]]
''name-sort'' function is defined as:
```
\function name-sort() "[{!!last-name}] [{!!first-name}] +[join[, ]]"
```
* Youll see in the “''Sorted by (tiddler) Title''” section that the people are sorted by their Person/1, Person/2, ...
* In the ''People'' section, theyre ''sorted by last name'', and for those with the same last name, by first name. And thats exactly what I was looking for.
<div class="tc-table-of-contents">
<<toc tag:"nameSorted">>
</div>