Skip to content

Commit b76c44d

Browse files
authored
Merge pull request #9 from lqd/sort
Switch back to a stable sort
2 parents 9c2a865 + cb37bf7 commit b76c44d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ impl<Tuple: Ord> Relation<Tuple> {
8484
}
8585

8686
fn from_vec(mut elements: Vec<Tuple>) -> Self {
87-
elements.sort_unstable();
87+
elements.sort();
8888
elements.dedup();
8989
Relation { elements }
9090
}

0 commit comments

Comments
 (0)