Programming, sorting IT Nursery What is the shortest way to simply sort an array of structs by (arbitrary) field names? I just had a problem where I had an array of structs, e.g. package main import "log" type Planet struct { Name string `json:"name"` Aphelion float64 `json:"aphelion"` // in... June 2, 2022 0 Comments