mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 15:10:12 +01:00
🎨 Improve database multi-select field sorting https://github.com/siyuan-note/siyuan/issues/11146
This commit is contained in:
parent
41e6c78bdb
commit
434054c9a8
1 changed files with 2 additions and 2 deletions
|
|
@ -145,7 +145,7 @@ func (value *Value) Compare(other *Value, attrView *AttributeView) int {
|
||||||
return s
|
return s
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return 1
|
return 0
|
||||||
} else {
|
} else {
|
||||||
for i := 0; i < oLen; i++ {
|
for i := 0; i < oLen; i++ {
|
||||||
v := value.MSelect[i].Content
|
v := value.MSelect[i].Content
|
||||||
|
|
@ -160,7 +160,7 @@ func (value *Value) Compare(other *Value, attrView *AttributeView) int {
|
||||||
return s
|
return s
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return -1
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue