This is a small issue, but easy to fix.
I have noticed that all the messages prints in the screen regarding creation and deletion of files and directories are sorted alphabetically EXCEPT for the Delete Remote Files and the Delete Local Dirs sections. This is caused by the absence of a SORT in their corresponding FOREACH cicles:
* foreach $curremotefile (keys(%remotefiledates))
* foreach $curlocaldir (keys(%localdirs))
Which should be:
* foreach $curremotefile (sort { return $a cmp $b; } keys(%remotefiledates))
* foreach $curlocaldir (sort { return $a cmp $b; } keys(%localdirs))