forked from janek/mostr
fix: small sorting adjustment
This commit is contained in:
parent
66af6af0ab
commit
ae4d315d87
|
@ -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(" ")),
|
||||
|
|
|
@ -127,6 +127,7 @@ impl Tasks {
|
|||
],
|
||||
sorting: VecDeque::from([
|
||||
"state".into(),
|
||||
"rtime".into(),
|
||||
"name".into(),
|
||||
]),
|
||||
position: None, // TODO persist position
|
||||
|
|
Loading…
Reference in New Issue