Stirling-PDF icon indicating copy to clipboard operation
Stirling-PDF copied to clipboard

[Bug]: Merge backend API sort by date modified doesn't work

Open jbrunton96 opened this issue 4 months ago • 0 comments

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:

  1. Get 3 PDFs (1.pdf, 2.pdf, 3.pdf)
  2. touch 2.pdf so it has the most recent modification
  3. Make an API request to merge-pdfs with file inputs [1.pdf, 2.pdf, 3.pdf] and sortType = byDateModified
  4. Notice that the output PDF is 1->2->3, not 2->1->3 or 1->3->2 as 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.

jbrunton96 avatar Aug 19 '25 11:08 jbrunton96