mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-24 17:26:10 +01:00
This commit is contained in:
parent
e4c6191379
commit
d5cd9e671b
1 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue