mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Sort .data files by filename if modification times are the same.
(cherry picked from commit a87a1f8750b0a0fed31add8b5105649eff5c5f8c)
This commit is contained in:
parent
cfe0c04eeb
commit
4ae14282ff
@ -124,9 +124,9 @@ sub data_producer ($) {
|
||||
# Temporarily disable warnings (some files may have been deleted)
|
||||
no warnings;
|
||||
if ($pa_config->{'dataserver_lifo'} == 0) {
|
||||
@sorted = sort { -M $pa_config->{'incomingdir'} . "/$b" <=> -M $pa_config->{'incomingdir'} . "/$a" } (@files);
|
||||
@sorted = sort { -M $pa_config->{'incomingdir'} . "/$b" <=> -M $pa_config->{'incomingdir'} . "/$a" || $a cmp $b } (@files);
|
||||
} else {
|
||||
@sorted = sort { -M $pa_config->{'incomingdir'} . "/$a" <=> -M $pa_config->{'incomingdir'} . "/$b" } (@files);
|
||||
@sorted = sort { -M $pa_config->{'incomingdir'} . "/$a" <=> -M $pa_config->{'incomingdir'} . "/$b" || $b cmp $a } (@files);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user