Description
I am interested to know if there is a way to control the sort order of files inside zip files using standard procedures in PHP and / or Java.
I am not interested in using zip / unzip with shell_exec()or similar, but this may be of interest if it contains an easy to read solution.
In sort order, we can assume that this means date / time if there is no sort order in the zip file. I have not read the specifications, so I do not know.
Example
Files
foo.txt
bar.txt
test.txt
newfile.txt
Suppose each file contains a file name (foo.txt => foo.txt)
Problem
, unzip . , ? unzip -p zip .
, , .
( ( unzip -p))
test.txt
foo.txt
newfile.txt
bar.txt