Adding eachFile helper with sorting