I have an array/slice of members:
type Member struct {
Id int
LastName string
FirstName string
}
var members []Member
My question is how to sort them by LastName
and then by FirstName
.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…