Preserve port order connection preference to match portArray.