REF: move sort_by_pkey after headers instantiation and make sure the headers are not included in the sorting.
REF: move sort_by_pkey after headers instantiation and make sure the headers are not included in the sorting.

whiteavian/data_compare