mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
This commit is contained in:
parent
aafae43a9f
commit
7a80c48977
1 changed files with 1 additions and 1 deletions
|
@ -1276,7 +1276,7 @@ func FullTextSearchBlock(query string, boxes, paths []string, types map[string]b
|
|||
case 3: // 按更新时间升序
|
||||
sort.Slice(roots, func(i, j int) bool { return roots[i].Updated < roots[j].Updated })
|
||||
case 4: // 按更新时间降序
|
||||
sort.Slice(roots, func(i, j int) bool { return roots[i].Updated < roots[j].Updated })
|
||||
sort.Slice(roots, func(i, j int) bool { return roots[i].Updated > roots[j].Updated })
|
||||
case 5: // 按内容顺序(仅在按文档分组时)
|
||||
// 都是文档,按更新时间降序
|
||||
sort.Slice(roots, func(i, j int) bool { return roots[i].IAL["updated"] > roots[j].IAL["updated"] })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue