forked from janek/mostr
1
0
Fork 0

fix: small sorting adjustment

This commit is contained in:
xeruf 2024-08-13 21:32:45 +03:00
parent 66af6af0ab
commit ae4d315d87
2 changed files with 2 additions and 1 deletions

View File

@ -141,7 +141,7 @@ impl Task {
match property { match property {
"id" => Some(self.event.id.to_string()), "id" => Some(self.event.id.to_string()),
"parentid" => self.parent_id().map(|i| i.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()), "name" => Some(self.event.content.clone()),
"desc" => self.descriptions().last().cloned(), "desc" => self.descriptions().last().cloned(),
"description" => Some(self.descriptions().join(" ")), "description" => Some(self.descriptions().join(" ")),

View File

@ -127,6 +127,7 @@ impl Tasks {
], ],
sorting: VecDeque::from([ sorting: VecDeque::from([
"state".into(), "state".into(),
"rtime".into(),
"name".into(), "name".into(),
]), ]),
position: None, // TODO persist position position: None, // TODO persist position