+6
appview/state/repo.go
+6
appview/state/repo.go
···
94
if a.IsDefault {
95
return -1
96
}
97
if a.Commit != nil {
98
if a.Commit.Author.When.Before(b.Commit.Author.When) {
99
return 1
···
494
slices.SortFunc(result.Branches, func(a, b types.Branch) int {
495
if a.IsDefault {
496
return -1
497
}
498
if a.Commit != nil {
499
if a.Commit.Author.When.Before(b.Commit.Author.When) {
···
94
if a.IsDefault {
95
return -1
96
}
97
+
if b.IsDefault {
98
+
return 1
99
+
}
100
if a.Commit != nil {
101
if a.Commit.Author.When.Before(b.Commit.Author.When) {
102
return 1
···
497
slices.SortFunc(result.Branches, func(a, b types.Branch) int {
498
if a.IsDefault {
499
return -1
500
+
}
501
+
if b.IsDefault {
502
+
return 1
503
}
504
if a.Commit != nil {
505
if a.Commit.Author.When.Before(b.Commit.Author.When) {