Handle files in sorted order.