maintain sort order of host pairs as defined in the original JSON