From 169fa86a69de8dc86b781e4b94fc473ce302b4d1 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Thu, 26 Dec 2024 13:45:10 +0000 Subject: [PATCH] reverse terms in {byName}.Less()... easier to read. --- day-24/internal/one/zwire.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/day-24/internal/one/zwire.go b/day-24/internal/one/zwire.go index 39edc20..cac691b 100644 --- a/day-24/internal/one/zwire.go +++ b/day-24/internal/one/zwire.go @@ -8,7 +8,7 @@ func (b byName) Len() int { return len(b) } func (b byName) Less(i, j int) bool { - return b[j].name > b[i].name + return b[i].name < b[j].name } func (b byName) Swap(i, j int) { b[i], b[j] = b[j], b[i]