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
1 files changed,
10 insertions(+),
3 deletions(-)
jump to
M
web.go
→
web.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