🎨 优化 添加到卡包
对话框卡包列表 https://github.com/siyuan-note/siyuan/issues/7448
This commit is contained in:
parent
efc018a27f
commit
8d4519c7df
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue