mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-07-03 14:09:06 +02:00
🎨 Database grouping by field https://github.com/siyuan-note/siyuan/issues/10964
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user