Sort files to prevent file-ordering bugs