mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 反链面板支持文档排序 https://github.com/siyuan-note/insider/issues/1086
This commit is contained in:
parent
ef5a911f57
commit
73d9411b47
1 changed files with 1 additions and 1 deletions
|
|
@ -362,7 +362,7 @@ func GetBacklink2(id, keyword, mentionKeyword string, sortMode, mentionSortMode
|
||||||
}
|
}
|
||||||
|
|
||||||
sort.Slice(backmentions, func(i, j int) bool {
|
sort.Slice(backmentions, func(i, j int) bool {
|
||||||
switch sortMode {
|
switch mentionSortMode {
|
||||||
case util.SortModeUpdatedDESC:
|
case util.SortModeUpdatedDESC:
|
||||||
return backmentions[i].Updated > backmentions[j].Updated
|
return backmentions[i].Updated > backmentions[j].Updated
|
||||||
case util.SortModeUpdatedASC:
|
case util.SortModeUpdatedASC:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue