mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
🎨 Database grouping by field https://github.com/siyuan-note/siyuan/issues/10964
This commit is contained in:
parent
0e8ce9ddf9
commit
b15489a4cf
1 changed files with 9 additions and 0 deletions
|
@ -1662,6 +1662,15 @@ func genAttrViewViewGroups(view *av.View, attrView *av.AttributeView) {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
if av.GroupOrderMan != view.Group.Order {
|
||||
sort.SliceStable(view.Groups, func(i, j int) bool {
|
||||
if av.GroupOrderAsc == view.Group.Order {
|
||||
return view.Groups[i].Name < view.Groups[j].Name
|
||||
}
|
||||
return view.Groups[i].Name > view.Groups[j].Name
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
func isGroupByDate(view *av.View) bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue