sort tag and playground list when choosing

This commit is contained in:
2023-04-13 10:32:34 -06:00
parent d3963201d7
commit 610bda4351

View File

@@ -158,7 +158,7 @@
(when (hasComponent e Tags)
(doFor =>tag _ (readComponent e Tags)
(dictSet tags tag 1))))
(collect (tags.keys))))
(sort (collect (tags.keys)))))
(method :Array<String> allSelectedTags []
(allTags _selectedEntries))
@@ -497,7 +497,7 @@
(defCommand ChoosePlayground []
(ui.chooseBetweenStrings
"Choose a playground:"
(for =>key _ archive.playgrounds (if (= key "default") (continue) key))
(sort (for =>key _ archive.playgrounds (if (= key "default") (continue) key)))
->pg (SwitchPlayground pg))
[])