From 73d9411b473489f74ee6cdbb202a594b25e030ac Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Wed, 5 Oct 2022 21:23:29 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E5=8F=8D=E9=93=BE=E9=9D=A2=E6=9D=BF?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E6=96=87=E6=A1=A3=E6=8E=92=E5=BA=8F=20https:?= =?UTF-8?q?//github.com/siyuan-note/insider/issues/1086?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/backlink.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/model/backlink.go b/kernel/model/backlink.go index 095b422fc..c2f5e647f 100644 --- a/kernel/model/backlink.go +++ b/kernel/model/backlink.go @@ -362,7 +362,7 @@ func GetBacklink2(id, keyword, mentionKeyword string, sortMode, mentionSortMode } sort.Slice(backmentions, func(i, j int) bool { - switch sortMode { + switch mentionSortMode { case util.SortModeUpdatedDESC: return backmentions[i].Updated > backmentions[j].Updated case util.SortModeUpdatedASC: