mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 10:07:19 +00:00
Palette manager: sort palettes by name, not description (#3853)
... currently it appears as if there was no sorting logic
This commit is contained in:
parent
d068cb3625
commit
2e0b2c8045
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user