From d5cd9e671b859a49001df614e78a4e5703e396a3 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Sat, 13 Apr 2024 22:38:47 +0800 Subject: [PATCH] :bug: https://github.com/siyuan-note/siyuan/issues/11015 --- kernel/av/sort.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/av/sort.go b/kernel/av/sort.go index 04d79587b..37c36aea8 100644 --- a/kernel/av/sort.go +++ b/kernel/av/sort.go @@ -233,8 +233,8 @@ func (value *Value) Compare(other *Value, attrView *AttributeView) int { } oContent := strings.TrimSpace(oContentBuf.String()) - v1, ok1 := util.Convert2Float(value.Template.Content) - v2, ok2 := util.Convert2Float(other.Template.Content) + v1, ok1 := util.Convert2Float(vContent) + v2, ok2 := util.Convert2Float(oContent) if ok1 && ok2 { if v1 > v2 { return 1 @@ -262,8 +262,8 @@ func (value *Value) Compare(other *Value, attrView *AttributeView) int { } oContent := strings.TrimSpace(oContentBuf.String()) - v1, ok1 := util.Convert2Float(value.Template.Content) - v2, ok2 := util.Convert2Float(other.Template.Content) + v1, ok1 := util.Convert2Float(vContent) + v2, ok2 := util.Convert2Float(oContent) if ok1 && ok2 { if v1 > v2 { return 1