We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5672cfd commit 3db3b95Copy full SHA for 3db3b95
src/components/commit_details/compare_details.rs
@@ -52,7 +52,15 @@ impl CompareDetailsComponent {
52
let c1 = sync::get_commit_details(CWD, ids.0).ok();
53
let c2 = sync::get_commit_details(CWD, ids.1).ok();
54
55
- c1.and_then(|c1| c2.map(|c2| (c1, c2)))
+ c1.and_then(|c1| {
56
+ c2.map(|c2| {
57
+ if c1.author.time < c2.author.time {
58
+ (c1, c2)
59
+ } else {
60
+ (c2, c1)
61
+ }
62
+ })
63
64
});
65
}
66
0 commit comments