diff --git a/pkg/models/account.go b/pkg/models/account.go index 7bd5af9f..05cced9c 100644 --- a/pkg/models/account.go +++ b/pkg/models/account.go @@ -154,5 +154,9 @@ func (a AccountInfoResponseSlice) Swap(i, j int) { } func (a AccountInfoResponseSlice) Less(i, j int) bool { + if a[i].Category != a[j].Category { + return a[i].Category < a[j].Category + } + return a[i].DisplayOrder < a[j].DisplayOrder }