Sort list of .dat files
in .png generation to make builds reproducible.
See https://reproducible-builds.org/ for why this matters.
Note: scandir is only available on POSIX-compliant platforms (Linux,
BSD, MacOSX, cygwin) - so others would need some compat layer.