From 5b20968ade1d6aad62c5ffaba511ea89d82c2fd4 Mon Sep 17 00:00:00 2001 From: Oleksandr Kozachuk Date: Sat, 24 Dec 2022 16:01:27 +0100 Subject: [PATCH] Fix ld command sort order. --- src/repl.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/repl.rs b/src/repl.rs index dc83acb..d3e8101 100644 --- a/src/repl.rs +++ b/src/repl.rs @@ -97,7 +97,7 @@ impl<'a> LKEval<'a> { quit = true; } Command::Ls(filter) => self.cmd_ls(&out, filter.to_string(), |a,b| a.borrow().name.cmp(&b.borrow().name)), - Command::Ld(filter) => self.cmd_ls(&out, filter.to_string(), |a,b| b.borrow().date.cmp(&a.borrow().date)), + Command::Ld(filter) => self.cmd_ls(&out, filter.to_string(), |a,b| a.borrow().date.cmp(&b.borrow().date)), Command::Add(name) => self.cmd_add(&out, &name), Command::Leave(name) => self.cmd_leave(&out, &name), Command::Comment(name, comment) => self.cmd_comment(&out, &name, &comment),