mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-15 00:21:00 +08:00
🎨 Database template columns support sort
This commit is contained in:
parent
3da9f0f1e1
commit
df9b55c71b
@ -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…
Reference in New Issue
Block a user