EHO-306 Added header item sorting to make sure that the UA-Compatible header is the first one