use sorted_fields in 'dump_validated'