diff --git a/backend/src/share/share.service.ts b/backend/src/share/share.service.ts index ad38a9da..bc43e341 100644 --- a/backend/src/share/share.service.ts +++ b/backend/src/share/share.service.ts @@ -239,7 +239,11 @@ export class ShareService { const share = await this.prisma.share.findUnique({ where: { id }, include: { - files: true, + files: { + orderBy: { + name: "asc", + }, + }, creator: true, security: true, }, diff --git a/frontend/src/components/share/FileList.tsx b/frontend/src/components/share/FileList.tsx index 7a8675df..77d2fb26 100644 --- a/frontend/src/components/share/FileList.tsx +++ b/frontend/src/components/share/FileList.tsx @@ -39,7 +39,7 @@ const FileList = ({ const t = useTranslate(); const [sort, setSort] = useState({ - property: undefined, + property: "name", direction: "desc", });