Skip to content

Commit

Permalink
feat: after sorting by kind also sort alphabetically
Browse files Browse the repository at this point in the history
  • Loading branch information
rbjorklin committed Sep 16, 2024
1 parent f778066 commit 4cce79c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions kind_sorter.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ func lessByKind(
if !bok {
return true
}
// sort different kinds, keep original order if same priority
return first < second
// sort different kinds, then sort alphabetically
strA, _ := nameA.(string)
strB, _ := nameB.(string)
return strA < strB
}

0 comments on commit 4cce79c

Please sign in to comment.