Skip to content

Commit 1875fcd

Browse files
authored
Use sort.Strings() (#5)
1 parent ce59cf8 commit 1875fcd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

helpers/helpers.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ func MapKeys(input map[string]interface{}) []string {
3131

3232
// SortedSyncMapKeys -
3333
func SortedSyncMapKeys(parMap *syncmap.Map) (output []string) {
34-
3534
parMap.Range(func(key, value interface{}) bool {
3635
strkey := fmt.Sprintf("%v", key)
3736
output = append(output, strkey)
3837
return true
3938
})
4039

41-
sort.Sort(sort.StringSlice(output))
40+
sort.Strings(output)
41+
4242
return output
4343
}
4444

0 commit comments

Comments
 (0)