From ae4d315d87734159c67b7783a68676deed874d9b Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Tue, 13 Aug 2024 21:32:45 +0300 Subject: [PATCH] fix: small sorting adjustment --- src/task.rs | 2 +- src/tasks.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/task.rs b/src/task.rs index a95dbbb..d9280d5 100644 --- a/src/task.rs +++ b/src/task.rs @@ -141,7 +141,7 @@ impl Task { match property { "id" => Some(self.event.id.to_string()), "parentid" => self.parent_id().map(|i| i.to_string()), - "status" => Some(self.state_or_default().get_colored_label().to_string()), + "status" => Some(self.state_or_default().get_label()), "name" => Some(self.event.content.clone()), "desc" => self.descriptions().last().cloned(), "description" => Some(self.descriptions().join(" ")), diff --git a/src/tasks.rs b/src/tasks.rs index a5ff1c7..9d51444 100644 --- a/src/tasks.rs +++ b/src/tasks.rs @@ -127,6 +127,7 @@ impl Tasks { ], sorting: VecDeque::from([ "state".into(), + "rtime".into(), "name".into(), ]), position: None, // TODO persist position