diff --git a/day-24/internal/one/zwire.go b/day-24/internal/one/zwire.go index cac691b..26d3038 100644 --- a/day-24/internal/one/zwire.go +++ b/day-24/internal/one/zwire.go @@ -7,9 +7,11 @@ type byName []zWire func (b byName) Len() int { return len(b) } + func (b byName) Less(i, j int) bool { return b[i].name < b[j].name } + func (b byName) Swap(i, j int) { b[i], b[j] = b[j], b[i] }