From de6d1a24a06fb32fa945085463fcc922dfadf152 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Thu, 14 Nov 2013 21:39:21 -0600 Subject: Reorganize the new map key sorting functionality. This commit moves the new code related to sorting reflect.Value items into common.go since it is accessed by both the formatter and the dumper. It also adds comments to the new functions and unexports SortValues since it should be an internal function only. --- spew/format.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spew/format.go') diff --git a/spew/format.go b/spew/format.go index fc57fda..b6b1fb0 100644 --- a/spew/format.go +++ b/spew/format.go @@ -303,7 +303,7 @@ func (f *formatState) format(v reflect.Value) { } else { keys := v.MapKeys() if f.cs.SortKeys { - SortValues(keys) + sortValues(keys) } for i, key := range keys { if i > 0 { -- cgit v1.2.3