1
0
mirror of https://github.com/stonith404/pingvin-share.git synced 2024-11-15 11:50:34 +01:00

feat: sort share files by name by default

This commit is contained in:
Elias Schneider 2024-07-25 19:32:00 +02:00
parent 601772d2f4
commit 27ee9fb6cb
No known key found for this signature in database
GPG Key ID: 07E623B294202B6C
2 changed files with 6 additions and 2 deletions

View File

@ -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,
},

View File

@ -39,7 +39,7 @@ const FileList = ({
const t = useTranslate();
const [sort, setSort] = useState<TableSort>({
property: undefined,
property: "name",
direction: "desc",
});