From 6f67a406573f405ef66c5c1e460690f32542d9f5 Mon Sep 17 00:00:00 2001 From: Daher Alfawares Date: Sat, 2 Oct 2021 05:14:47 -0400 Subject: [PATCH] Update info.go --- info.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/info.go b/info.go index 61ad286..0ef4348 100644 --- a/info.go +++ b/info.go @@ -21,6 +21,7 @@ package olog import "reflect" import "fmt" import "sort" +import "strings" func merge(s1, s2 [][]string) [][]string { for _, r2 := range s2 { @@ -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