We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2421b9 commit fd32b5bCopy full SHA for fd32b5b
crates/node/src/patcher.rs
@@ -153,7 +153,7 @@ impl JsonPatcher {
153
154
// Sort descending by start position
155
let mut sorted: Vec<&Patch> = patches.iter().collect();
156
- sorted.sort_by(|a, b| b.start.cmp(&a.start));
+ sorted.sort_by_key(|p| std::cmp::Reverse(p.start));
157
158
// Check for overlapping patches
159
for window in sorted.windows(2) {
0 commit comments