From 4f0d15ebb548fa42d1efca280740b1b1d216b9e2 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Fri, 25 Aug 2023 00:33:16 -0400 Subject: [PATCH] i think maybe we want the thread sorted the other way actually? --- web.go | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/web.go b/web.go index de6ee08..0ec9ccf 100644 --- a/web.go +++ b/web.go @@ -1078,9 +1078,16 @@ func threadsort(honks []*Honk) []*Honk { } p.Style += fmt.Sprintf(" level%d", level) childs := kids[p.XID] - sort.SliceStable(childs, func(i, j int) bool { - return sameperson(childs[i], p) && !sameperson(childs[j], p) - }) + if false { + sort.SliceStable(childs, func(i, j int) bool { + return sameperson(childs[i], p) && !sameperson(childs[j], p) + }) + } + if true { + sort.SliceStable(childs, func(i, j int) bool { + return !sameperson(childs[i], p) && sameperson(childs[j], p) + }) + } for _, h := range childs { if !done[h] { done[h] = true