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 @@ -491,7 +491,7 @@ impl<Pk: MiniscriptKey> Policy<Pk> {
491
491
/// which appear in the policy
492
492
pub fn relative_timelocks ( & self ) -> Vec < u32 > {
493
493
let mut ret = self . real_relative_timelocks ( ) ;
494
- ret. sort ( ) ;
494
+ ret. sort_unstable ( ) ;
495
495
ret. dedup ( ) ;
496
496
ret
497
497
}
@@ -519,7 +519,7 @@ impl<Pk: MiniscriptKey> Policy<Pk> {
519
519
/// which appear in the policy
520
520
pub fn absolute_timelocks ( & self ) -> Vec < u32 > {
521
521
let mut ret = self . real_absolute_timelocks ( ) ;
522
- ret. sort ( ) ;
522
+ ret. sort_unstable ( ) ;
523
523
ret. dedup ( ) ;
524
524
ret
525
525
}
@@ -599,7 +599,7 @@ impl<Pk: MiniscriptKey> Policy<Pk> {
599
599
// Not enough branches are satisfiable
600
600
None
601
601
} else {
602
- sublens. sort ( ) ;
602
+ sublens. sort_unstable ( ) ;
603
603
Some ( sublens[ 0 ..k] . iter ( ) . cloned ( ) . sum :: < usize > ( ) )
604
604
}
605
605
}
You can’t perform that action at this time.
0 commit comments