Use unstable sort for sorting frames

This commit is contained in:
+merlan #flirora 2025-06-24 16:27:22 -04:00
parent b5f0bc914a
commit fad03a474b

View File

@ -561,7 +561,7 @@ pub fn commit(
add_par_line_marker(&mut output, marker, engine, locator, top); add_par_line_marker(&mut output, marker, engine, locator, top);
} }
frames.sort_by_key(|(_, _, idx)| *idx); frames.sort_unstable_by_key(|(_, _, idx)| *idx);
// Construct the line's frame. // Construct the line's frame.
for (offset, frame, _) in frames { for (offset, frame, _) in frames {
let x = offset + p.config.align.position(remaining); let x = offset + p.config.align.position(remaining);