Browse Source

sort the keys before returning them

pull/16/head v0.1.1
Brett Langdon 11 years ago
parent
commit
aa1b876a69
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      section.go

+ 2
- 0
section.go View File

@ -4,6 +4,7 @@ import (
"encoding/json" "encoding/json"
"errors" "errors"
"fmt" "fmt"
"sort"
"strings" "strings"
) )
@ -197,6 +198,7 @@ func (section *Section) Keys() []string {
keys = append(keys, key) keys = append(keys, key)
} }
sort.Strings(keys)
return keys return keys
} }


Loading…
Cancel
Save