Palette manager: sort palettes by name, not description (#3853)

... currently it appears as if there was no sorting logic
wikitext-via-macros
Simon Huber 2019-03-12 10:48:34 +01:00 zatwierdzone przez Jeremy Ruston
rodzic d068cb3625
commit 2e0b2c8045
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -1,8 +1,8 @@
title: $:/snippets/paletteswitcher
<$linkcatcher to="$:/palette">
<div class="tc-chooser"><$list filter="[all[shadows+tiddlers]tag[$:/tags/Palette]sort[description]]"><$set name="cls" filter="[all[current]prefix{$:/palette}]" value="tc-chooser-item tc-chosen" emptyValue="tc-chooser-item"><div class=<<cls>>><$link to={{!!title}}>''<$view field="name" format="text"/>'' - <$view field="description" format="text"/>{{||$:/snippets/currpalettepreview}}</$link>
<div class="tc-chooser"><$list filter="[all[shadows+tiddlers]tag[$:/tags/Palette]sort[name]]"><$set name="cls" filter="[all[current]prefix{$:/palette}]" value="tc-chooser-item tc-chosen" emptyValue="tc-chooser-item"><div class=<<cls>>><$link to={{!!title}}>''<$view field="name" format="text"/>'' - <$view field="description" format="text"/>{{||$:/snippets/currpalettepreview}}</$link>
</div></$set>
</$list>
</div>
</$linkcatcher>
</$linkcatcher>