How can unordered map entries be converted into data that sort.Slice can order?
sort.Slice
Reinsert map entries from lowest to highest and rely on insertion order.
Pass the map itself directly to sort.Slice.
Copy only grades into a slice and permanently discard student names.
Range over the map and append a StudentGrade struct for each name-grade pair to a slice.
StudentGrade