Skip to content

Commit 499c94d

Browse files
Merge pull request #93 from abhitrueprogrammer/staging
removed sorting on order
2 parents a74a920 + bce9e19 commit 499c94d

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)