feat: better file sorting

This commit is contained in:
Julien Neuhart
2024-02-23 16:49:25 +01:00
parent 8ee555140b
commit 63055e3df2
3 changed files with 106 additions and 1 deletions

View File

@@ -11,6 +11,8 @@ import (
"time"
"go.uber.org/multierr"
"github.com/gotenberg/gotenberg/v8/pkg/gotenberg"
)
// FormData is a helper for validating and hydrating values from a
@@ -304,7 +306,7 @@ func (form *FormData) paths(extensions []string, target *[]string) *FormData {
}
// See https://github.com/gotenberg/gotenberg/issues/139.
sort.Strings(*target)
sort.Sort(gotenberg.AlphanumericSort(*target))
return form
}