Output lines in filename order