aboutsummaryrefslogtreecommitdiff
path: root/server/src/routes/ui/browser.rs
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/routes/ui/browser.rs')
-rw-r--r--server/src/routes/ui/browser.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/server/src/routes/ui/browser.rs b/server/src/routes/ui/browser.rs
index e811516..6c18442 100644
--- a/server/src/routes/ui/browser.rs
+++ b/server/src/routes/ui/browser.rs
@@ -8,7 +8,7 @@ use super::{
error::MyError,
layout::DynLayoutPage,
node::NodeCard,
- sort::{filter_and_sort_nodes, NodeFilterSort, NodeFilterSortForm},
+ sort::{filter_and_sort_nodes, NodeFilterSort, NodeFilterSortForm, SortOrder, SortProperty},
};
use crate::{database::DataAcid, uri};
use jellybase::database::{ReadableTable, T_NODE, T_USER_NODE};
@@ -47,7 +47,11 @@ pub fn r_all_items_filter(
i
};
- filter_and_sort_nodes(&filter, &mut items);
+ filter_and_sort_nodes(
+ &filter,
+ (SortProperty::Title, SortOrder::Ascending),
+ &mut items,
+ );
let page_size = 100;
let page = page.unwrap_or(0);