Stirling-PDF
Stirling-PDF copied to clipboard
[Bug]: Merge backend API sort by date modified doesn't work
Installation Method
None
The Problem
The Merge backend API (/api/v1/general/merge-pdfs) is supposed to support byDateModified as a sort option, but it doesn't actually work - you just get the input order back as a merged PDF.
Reproduction steps:
- Get 3 PDFs (
1.pdf,2.pdf,3.pdf) touch 2.pdfso it has the most recent modification- Make an API request to merge-pdfs with file inputs [
1.pdf,2.pdf,3.pdf] andsortType = byDateModified - Notice that the output PDF is
1->2->3, not2->1->3or1->3->2as expected
Version of Stirling-PDF
I think it's API version 1.2.0?
Last Working Version of Stirling-PDF
No response
Page Where the Problem Occurred
No response
Docker Configuration
Relevant Log Output
Additional Information
No response
Browsers Affected
No response
No Duplicate of the Issue
- [x] I have verified that there are no existing issues raised related to my problem.