From 7dbc3e8088d63d188c4c2190b60065ee5be3375b Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Mon, 23 Feb 2026 21:04:09 -0800 Subject: [PATCH] Seed sort weights from cue order instead of input position --- cmd/qrunproxy/timeline.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/cmd/qrunproxy/timeline.go b/cmd/qrunproxy/timeline.go index ef42204..440ebd5 100644 --- a/cmd/qrunproxy/timeline.go +++ b/cmd/qrunproxy/timeline.go @@ -226,8 +226,14 @@ func BuildTimelineDebug(show *Show, debugW io.Writer) (Timeline, error) { } func (tl *Timeline) sortBlocks() []*Block { - for i, b := range tl.show.Blocks { - b.weight = uint64(i) << 32 + cueIdx := 0 + for _, b := range tl.show.Blocks { + if b.Type == "cue" { + b.weight = uint64(cueIdx+1) << 32 + cueIdx++ + } else { + b.weight = 0 + } } changed := true