Skip to content

Commit

Permalink
style: maputil: revert MapStringInt.Sorted result to []Record
Browse files Browse the repository at this point in the history
  • Loading branch information
grokify committed Mar 8, 2021
1 parent 5797318 commit 4de46d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion type/maputil/map_string_int.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const (

// Sorted returns a set of key names and values sorted by
// the sort type.
func (msi MapStringInt) Sorted(sortBy string) RecordSet {
func (msi MapStringInt) Sorted(sortBy string) []Record {
sortBy = strings.ToLower(strings.TrimSpace(sortBy))
records := []Record{}
for name, count := range msi {
Expand Down

0 comments on commit 4de46d7

Please sign in to comment.