mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
@@ -23,6 +23,7 @@ import (
|
||||
"io/fs"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"sort"
|
||||
"strings"
|
||||
"text/template"
|
||||
"time"
|
||||
@@ -88,6 +89,7 @@ func SearchTemplate(keyword string) (ret []*Block) {
|
||||
}
|
||||
return nil
|
||||
})
|
||||
sort.Slice(ret, func(i, j int) bool { return util.PinYinCompare(filepath.Base(ret[i].Path), filepath.Base(ret[j].Path)) })
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user