diff --git a/rust/sorter.rs b/rust/sorter.rs index 71d2efa..3cce282 100644 --- a/rust/sorter.rs +++ b/rust/sorter.rs @@ -31,6 +31,6 @@ pub fn sort_strings(options: Options, strings: Vec) -> Vec { }) .filter(|m| m.score > 25) .collect::>(); - matches.sort_by(|a, b| a.score.cmp(&b.score)); + matches.par_sort_unstable_by(|a, b| a.score.cmp(&b.score)); matches }