Skip to content

Commit

Permalink
Sort listings before printing.
Browse files Browse the repository at this point in the history
  • Loading branch information
mdwhatcott committed Aug 23, 2019
1 parent 564d2e2 commit 241f209
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions map.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ func mapKeys(m map[string]string) (keys []string) {
for key := range m {
keys = append(keys, key)
}
sort.Strings(keys)
return keys
}
func printMapKeys(m map[string]string, preamble string) {
Expand Down

0 comments on commit 241f209

Please sign in to comment.