diff options
| author | Dave Collins <[email protected]> | 2013-11-14 21:53:06 -0600 |
|---|---|---|
| committer | Dave Collins <[email protected]> | 2013-11-14 21:53:06 -0600 |
| commit | 67c401cf121f235f32b5ecbfc7989b88709b57d9 (patch) | |
| tree | 6938395ab98c116ee5187d053d9ecc2e8a3a2563 | |
| parent | e0d93cdf8b1f588d8f263b202bfb4a3eedf3e2b4 (diff) | |
Reorder Less function cases to consistent order.
| -rw-r--r-- | spew/common.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spew/common.go b/spew/common.go index 3a3a2b0..6f67a0c 100644 --- a/spew/common.go +++ b/spew/common.go @@ -275,14 +275,14 @@ func (s *valuesSorter) Less(i, j int) bool { switch s.values[i].Kind() { case reflect.Bool: return !s.values[i].Bool() && s.values[j].Bool() - case reflect.Float32, reflect.Float64: - return s.values[i].Float() < s.values[j].Float() case reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64, reflect.Int: return s.values[i].Int() < s.values[j].Int() - case reflect.String: - return s.values[i].String() < s.values[j].String() case reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uint: return s.values[i].Uint() < s.values[j].Uint() + case reflect.Float32, reflect.Float64: + return s.values[i].Float() < s.values[j].Float() + case reflect.String: + return s.values[i].String() < s.values[j].String() case reflect.Uintptr: return s.values[i].UnsafeAddr() < s.values[j].UnsafeAddr() } |
