mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 07:30:12 +01:00
🎨 Database template columns support sort
This commit is contained in:
parent
3da9f0f1e1
commit
df9b55c71b
1 changed files with 3 additions and 0 deletions
|
|
@ -162,6 +162,9 @@ func (value *Value) Compare(other *Value) int {
|
|||
}
|
||||
return strings.Compare(v1, v2)
|
||||
}
|
||||
if nil != value.Template && nil != other.Template {
|
||||
return strings.Compare(value.Template.Content, other.Template.Content)
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue