mirror of
https://github.com/stonith404/pingvin-share.git
synced 2024-11-15 03:50:11 +01:00
feat: sort share files by name by default
This commit is contained in:
parent
601772d2f4
commit
27ee9fb6cb
@ -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,
|
||||
},
|
||||
|
@ -39,7 +39,7 @@ const FileList = ({
|
||||
const t = useTranslate();
|
||||
|
||||
const [sort, setSort] = useState<TableSort>({
|
||||
property: undefined,
|
||||
property: "name",
|
||||
direction: "desc",
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user