Adds filenames sorting before plotting