Show legal and required fields in importer error message

Fixes #1862
Any specific reason why we sort the legal fields and do not sort the required fields?