Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Improve database multi-select field sorting https://github.com/siyuan-note/siyuan/issues/11146

Daniel434054c9a8ff
diff --git a/kernel/av/sort.go b/kernel/av/sort.go
index 829e02604b..393dd22323 100644
--- a/kernel/av/sort.go
+++ b/kernel/av/sort.go
@@ -145,7 +145,7 @@ func (value *Value) Compare(other *Value, attrView *AttributeView) int {
return s
}
}
- return 1
+ return 0
} else {
for i := 0; i < oLen; i++ {
v := value.MSelect[i].Content
@@ -160,7 +160,7 @@ func (value *Value) Compare(other *Value, attrView *AttributeView) int {
return s
}
}
- return -1
+ return 0
}
}