Skip to content

Commit

Permalink
feat: set default sorting by updating date
Browse files Browse the repository at this point in the history
  • Loading branch information
theotheo committed Mar 8, 2024
1 parent 7de99d8 commit d267f5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ListView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function ListView({

const [targets, setTargets] = useState<Set<string>>(new Set());
const [isGrid, setGrid] = useState<boolean>(false);
const [sort, setSort] = useState<string>('name-asc');
const [sort, setSort] = useState<string>('updated-asc');

const onClick = (event: MouseEvent, file: FileData): void => {
if (event.shiftKey) {
Expand Down

0 comments on commit d267f5c

Please sign in to comment.