sort file_ids before gathering metadata