Preliminary work for sorting headers