Adds missing objects to array then sorts min/max arrays to so they match.