diff --git a/type/maputil/map_string_int.go b/type/maputil/map_string_int.go index 40551282..8c912ce9 100644 --- a/type/maputil/map_string_int.go +++ b/type/maputil/map_string_int.go @@ -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{}