mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Database table view cell value adds createdAt and updatedAt fields https://github.com/siyuan-note/siyuan/issues/10492
This commit is contained in:
parent
e487897b54
commit
ce58bccd63
3 changed files with 26 additions and 5 deletions
|
|
@ -91,10 +91,11 @@ func (value *Value) Compare(other *Value) int {
|
|||
}
|
||||
|
||||
if !value.IsEdited() {
|
||||
return 1
|
||||
}
|
||||
|
||||
if !other.IsEdited() {
|
||||
if other.IsEdited() {
|
||||
return 1
|
||||
}
|
||||
return int(value.CreatedAt - other.CreatedAt)
|
||||
} else if !other.IsEdited() {
|
||||
return -1
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue