🎨 优化 添加到卡包 对话框卡包列表 https://github.com/siyuan-note/siyuan/issues/7448

This commit is contained in:
Liang Ding 2023-02-23 08:39:37 +08:00
parent efc018a27f
commit 8d4519c7df
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -674,6 +674,10 @@ func GetDecks() (decks []*riff.Deck) {
if 1 > len(decks) {
decks = []*riff.Deck{}
}
sort.Slice(decks, func(i, j int) bool {
return decks[i].Updated > decks[j].Updated
})
return
}