parser.py: Writer class: write_record: samples order in template reader is checked and followed when outputting