Skip to content

Commit

Permalink
Manually added fix for output flag
Browse files Browse the repository at this point in the history
  • Loading branch information
rrmcguinness committed Apr 18, 2024
1 parent 58ac667 commit 249882b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/proto/writer_markdown.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ func MessageToMarkdown(message *Message, wc *WriterConfig) (body string, diagram
attributeTable.AddHeader("Field", "Ordinal", "Type", "Label", "Description")

sort.Slice(message.Attributes, func(i, j int) bool {
v := strings.Compare(message.Attributes[i].Name, message.Attributes[j].Name)
return v < 0
return message.Attributes[i].Ordinal < message.Attributes[j].Ordinal
})

for _, a := range message.Attributes {
Expand Down

0 comments on commit 249882b

Please sign in to comment.