@@ -36,19 +36,18 @@ func (o *SortedMap) Swap(i, j int) {
3636//
3737// The ordering rules are more general than with Go's < operator:
3838//
39- // - when applicable, nil compares low
40- // - ints, floats, and strings order by <
41- // - NaN compares less than non-NaN floats
42- // - bool compares false before true
43- // - complex compares real, then imag
44- // - pointers compare by machine address
45- // - channel values compare by machine address
46- // - structs compare each field in turn
47- // - arrays compare each element in turn.
48- // Otherwise identical arrays compare by length.
49- // - interface values compare first by reflect.Type describing the concrete type
50- // and then by concrete value as described in the previous rules.
51- //
39+ // - when applicable, nil compares low
40+ // - ints, floats, and strings order by <
41+ // - NaN compares less than non-NaN floats
42+ // - bool compares false before true
43+ // - complex compares real, then imag
44+ // - pointers compare by machine address
45+ // - channel values compare by machine address
46+ // - structs compare each field in turn
47+ // - arrays compare each element in turn.
48+ // Otherwise identical arrays compare by length.
49+ // - interface values compare first by reflect.Type describing the concrete type
50+ // and then by concrete value as described in the previous rules.
5251func Sort (mapValue reflect.Value ) * SortedMap {
5352 if mapValue .Type ().Kind () != reflect .Map {
5453 return nil
0 commit comments