Skip to content

Commit

Permalink
Update info.go
Browse files Browse the repository at this point in the history
  • Loading branch information
da0x authored Oct 2, 2021
1 parent 57a222d commit 6f67a40
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion info.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ package olog
import "reflect"
import "fmt"
import "sort"
import "strings"

func merge(s1, s2 [][]string) [][]string {
for _, r2 := range s2 {
Expand Down Expand Up @@ -86,7 +87,7 @@ func valuesOfMap(item reflect.Value) [][]string {
o = append(o, r)
}
sort.Slice(o, func(i, j int) bool {
return o[i][0] < o[j][0]
return strings.Compare(o[i][0], o[j][0]) > 0
})
}
return o
Expand Down

0 comments on commit 6f67a40

Please sign in to comment.