Radish alpha
r
Radicle terminal user interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
tui: Sort issues by time and state
Erik Kundt committed 2 years ago
commit 4766f76660de003aeb4b896f931b1d7a46cbafb4
parent cbfba97543aaf1af861c2542ce01c22db90a9b25
2 files changed +2 -2
modified radicle-tui/src/ui/widget/home.rs
@@ -88,7 +88,7 @@ impl IssueBrowser {
        }

        items.sort_by(|a, b| b.timestamp().cmp(a.timestamp()));
-
        items.sort_by(|a, b| a.state().cmp(b.state()));
+
        items.sort_by(|a, b| b.state().cmp(a.state()));

        let table = Widget::new(Table::new(&items, header, widths, theme.clone()))
            .highlight(theme.colors.item_list_highlighted_bg);
modified radicle-tui/src/ui/widget/issue.rs
@@ -34,7 +34,7 @@ impl LargeList {
            .collect::<Vec<_>>();

        items.sort_by(|a, b| b.timestamp().cmp(a.timestamp()));
-
        items.sort_by(|a, b| a.state().cmp(b.state()));
+
        items.sort_by(|a, b| b.state().cmp(a.state()));

        let selected =
            selected.map(|(id, issue)| IssueItem::from((context.profile(), repo, id, issue)));