Bug 13893: [QA Follow-up] Move print statement, sort files in loop