Sort files for consistent ordering.