Skip to content

Commit bce9e19

Browse files
removed sorting on order
1 parent 61aa1cc commit bce9e19

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/app/api/upload/route.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,7 @@ async function uploadFile(
144144
async function CreatePDF(files: File[]) {
145145
const pdfDoc = await PDFDocument.create();
146146

147-
const orderedFiles = Array.from(files).sort((a, b) => {
148-
return a.name.localeCompare(b.name);
149-
});
147+
const orderedFiles = files;
150148

151149
for (const file of orderedFiles) {
152150
const fileBlob = new Blob([file]);

0 commit comments

Comments
 (0)