It looks like samba sending a list of file names in random order. Of course, you could make it sort alphabetically and make your life easier.
For Debian/Ubuntu
# apt-get install samba-vfs-modules
then edit /etc/samba/smb.conf
[global] vfs objects = dirsort
Restart your samba, and tada !