This commit is contained in:
Liang Ding 2022-09-23 23:13:27 +08:00
parent 86276e414b
commit a8b6b1b37b
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
4 changed files with 7 additions and 2 deletions

View file

@ -144,6 +144,9 @@ func GetBlockRefIDsByFileAnnotationID(id string) (refIDs, refTexts []string) {
func GetBlockDefIDsByRefText(refText string, excludeIDs []string) (ret []string) {
ret = sql.QueryBlockDefIDsByRefText(refText, excludeIDs)
sort.Sort(sort.Reverse(sort.StringSlice(ret)))
if 1 > len(ret) {
ret = []string{}
}
return
}