HF RL Explorer

Task: Sort Struct with Multiple Sort Parameters in Go

Task: Sort Struct with Multiple Sort Parameters in Go: a task in Terminal-Lego-15k (Harbor dataset). You need to write a Go program that sorts a slice of Member structs by multiple fields. The sorting should be performed first by LastName (ascending, alphabetically), and then by FirstName…

The task

You need to write a Go program that sorts a slice of `Member` structs by multiple fields. The sorting should be performed first by `LastName` (ascending, alphabetically), and then by `FirstName` (ascending, alphabetically) when last names are equal.

Part of PrimeIntellect/Terminal-Lego-15k.