We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7715c14 commit 781c384Copy full SHA for 781c384
file.go
@@ -212,7 +212,7 @@ func (f *File) writeToZip(zw *zip.Writer) error {
212
files = append(files, path.(string))
213
return true
214
})
215
- sort.Strings(files)
+ sort.Sort(sort.Reverse(sort.StringSlice(files)))
216
for _, path := range files {
217
var fi io.Writer
218
if fi, err = zw.Create(path); err != nil {
@@ -228,7 +228,7 @@ func (f *File) writeToZip(zw *zip.Writer) error {
228
tempFiles = append(tempFiles, path.(string))
229
230
231
- sort.Strings(tempFiles)
+ sort.Sort(sort.Reverse(sort.StringSlice(tempFiles)))
232
for _, path := range tempFiles {
233
234
0 commit comments