File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -489,7 +489,7 @@ impl<Pk: MiniscriptKey> Policy<Pk> {
489
489
/// which appear in the policy
490
490
pub fn relative_timelocks ( & self ) -> Vec < u32 > {
491
491
let mut ret = self . real_relative_timelocks ( ) ;
492
- ret. sort ( ) ;
492
+ ret. sort_unstable ( ) ;
493
493
ret. dedup ( ) ;
494
494
ret
495
495
}
@@ -517,7 +517,7 @@ impl<Pk: MiniscriptKey> Policy<Pk> {
517
517
/// which appear in the policy
518
518
pub fn absolute_timelocks ( & self ) -> Vec < u32 > {
519
519
let mut ret = self . real_absolute_timelocks ( ) ;
520
- ret. sort ( ) ;
520
+ ret. sort_unstable ( ) ;
521
521
ret. dedup ( ) ;
522
522
ret
523
523
}
@@ -597,7 +597,7 @@ impl<Pk: MiniscriptKey> Policy<Pk> {
597
597
// Not enough branches are satisfiable
598
598
None
599
599
} else {
600
- sublens. sort ( ) ;
600
+ sublens. sort_unstable ( ) ;
601
601
Some ( sublens[ 0 ..k] . iter ( ) . cloned ( ) . sum :: < usize > ( ) )
602
602
}
603
603
}
You can’t perform that action at this time.
0 commit comments