Sort files consistently