Skip to content

Commit

Permalink
docs: maputil: add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
grokify committed Mar 8, 2021
1 parent 5b270c3 commit 15ada09
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions type/maputil/map_string_int.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ const (
SortValueDesc = "value desc"
)

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

0 comments on commit 15ada09

Please sign in to comment.