i think maybe we want the thread sorted the other way actually?

This commit is contained in:
Ted Unangst 2023-08-25 00:33:16 -04:00
parent 634d74d139
commit 4f0d15ebb5
1 changed files with 10 additions and 3 deletions

7
web.go
View File

@ -1078,9 +1078,16 @@ func threadsort(honks []*Honk) []*Honk {
}
p.Style += fmt.Sprintf(" level%d", level)
childs := kids[p.XID]
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