mirror of
https://github.com/typst/typst
synced 2025-08-23 11:14:13 +08:00
Use unstable sort for sorting frames
This commit is contained in:
parent
b5f0bc914a
commit
fad03a474b
@ -561,7 +561,7 @@ pub fn commit(
|
||||
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.
|
||||
for (offset, frame, _) in frames {
|
||||
let x = offset + p.config.align.position(remaining);
|
||||
|
Loading…
x
Reference in New Issue
Block a user