all repos — honk @ f996ffa2e5192e0b5bafe058dceefc3e0ff0cc10

my fork of honk

i think maybe we want the thread sorted the other way actually?
Ted Unangst tedu@tedunangst.com
Fri, 25 Aug 2023 00:33:16 -0400
commit

f996ffa2e5192e0b5bafe058dceefc3e0ff0cc10

parent

f8ed8ae6cc3bbf4848f54b3bb913cbc4af0125a6

1 files changed, 10 insertions(+), 3 deletions(-)

jump to
M web.goweb.go

@@ -1078,9 +1078,16 @@ level++

} 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