From d267f5c7ece75e961e4f077f0aa9987fe407a182 Mon Sep 17 00:00:00 2001 From: theotheo Date: Fri, 8 Mar 2024 08:41:23 +0300 Subject: [PATCH] feat: set default sorting by updating date --- src/components/ListView.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ListView.tsx b/src/components/ListView.tsx index b58b7b0..272bae9 100644 --- a/src/components/ListView.tsx +++ b/src/components/ListView.tsx @@ -33,7 +33,7 @@ export function ListView({ const [targets, setTargets] = useState>(new Set()); const [isGrid, setGrid] = useState(false); - const [sort, setSort] = useState('name-asc'); + const [sort, setSort] = useState('updated-asc'); const onClick = (event: MouseEvent, file: FileData): void => { if (event.shiftKey) {