Skip to content

TagSpaces is an offline, open source, document manager with tagging support

fix orderBy

sytolkac0e6a0da14a
diff --git a/src/renderer/perspectives/grid-perspective/components/SortingMenu.tsx b/src/renderer/perspectives/grid-perspective/components/SortingMenu.tsx
index 804e5cb47..f5d9ac3a3 100644
--- a/src/renderer/perspectives/grid-perspective/components/SortingMenu.tsx
+++ b/src/renderer/perspectives/grid-perspective/components/SortingMenu.tsx
@@ -66,9 +66,9 @@ function SortingMenu(props: Props) {
>
<ListItemIcon style={{ minWidth: 25 }}>
{sortBy === 'byName' &&
- (orderBy ? <ArrowDownIcon /> : <ArrowUpIcon />)}
+ (orderBy ? <ArrowUpIcon /> : <ArrowDownIcon />)}
</ListItemIcon>
- <ListItemText primary={t('core:fileTitle')} />
+ <ListItemText primary={t('core:fileName')} />
</MenuItem>
<MenuItem
data-tid="gridPerspectiveSortBySize"
diff --git a/src/renderer/perspectives/grid-perspective/index.tsx b/src/renderer/perspectives/grid-perspective/index.tsx
index 8d91eb0eb..1c44f7f30 100644
--- a/src/renderer/perspectives/grid-perspective/index.tsx
+++ b/src/renderer/perspectives/grid-perspective/index.tsx
@@ -17,7 +17,7 @@ export { default } from './components/MainContainer';
export const defaultSettings = {
testID: 'gridPerspectiveContainer',
settingsKey: 'tsPerspectiveGrid',
- orderBy: true,
+ orderBy: false,
sortBy: 'byName',
layoutType: 'grid', // list grid
singleClickAction: 'openInternal', // openInternal openExternal