Fixes an issue where using `file_name` order could result in incorrect file counts compared to response fields.