This commit is contained in:
Daniel 2025-07-25 19:06:38 +08:00
parent 0e8ce9ddf9
commit b15489a4cf
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -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 {