mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-19 14:56:09 +01:00
🎨 Database gallery view https://github.com/siyuan-note/siyuan/issues/10414
This commit is contained in:
parent
7dcca464dd
commit
160f175b22
1 changed files with 4 additions and 4 deletions
|
|
@ -383,11 +383,11 @@ func RenderAttributeViewGallery(attrView *av.AttributeView, view *av.View, query
|
|||
}
|
||||
}
|
||||
|
||||
sort.Slice(ret.Fields, func(i, j int) bool {
|
||||
iv := sortCardIDs[ret.Fields[i].ID]
|
||||
jv := sortCardIDs[ret.Fields[j].ID]
|
||||
sort.Slice(ret.Cards, func(i, j int) bool {
|
||||
iv := sortCardIDs[ret.Cards[i].ID]
|
||||
jv := sortCardIDs[ret.Cards[j].ID]
|
||||
if iv == jv {
|
||||
return ret.Fields[i].ID < ret.Fields[j].ID
|
||||
return ret.Cards[i].ID < ret.Cards[j].ID
|
||||
}
|
||||
return iv < jv
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue