cli: Fix sort order for patch listing

This commit is contained in:
Alexis Sellier 2023-05-29 12:02:59 +02:00
parent aa8394a838
commit 01ab91db86
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ pub fn run(
all.sort_by(|(id1, p1), (id2, p2)| {
let is_me = (p2.author().id().as_key() == &me).cmp(&(p1.author().id().as_key() == &me));
let by_id = id1.cmp(id2);
let by_rev_time = p1.updated_at().cmp(&p2.updated_at());
let by_rev_time = p2.updated_at().cmp(&p1.updated_at());
is_me.then(by_rev_time).then(by_id)
});