We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 81417e7 + 16f42ec commit bb010cdCopy full SHA for bb010cd
cmd/kaf/group.go
@@ -489,7 +489,14 @@ var groupDescribeCmd = &cobra.Command{
489
errorExit("Failed to fetch group offsets: %v\n", err)
490
}
491
492
- for topic, partitions := range offsetAndMetadata.Blocks {
+ topics := make([]string, 0, len(offsetAndMetadata.Blocks))
493
+ for k := range offsetAndMetadata.Blocks {
494
+ topics = append(topics, k)
495
+ }
496
+ sort.Strings(topics)
497
+
498
+ for _, topic := range topics {
499
+ partitions := offsetAndMetadata.Blocks[topic]
500
if len(flagDescribeTopics) > 0 {
501
var found bool
502
for _, topicToShow := range flagDescribeTopics {
0 commit comments