fixes order of app.files