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

This commit is contained in:
Daniel 2024-04-26 23:12:16 +08:00
parent 41e6c78bdb
commit 434054c9a8
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -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
}
}