A record decoder that re-orders the record to match the expected ordering.
maps the expected index to the index of the header column.