The neatest way to seam is mattress stitch. If you can possibly use it on your hat, it's makes a close to invisible seam. Here's the video for seamingstockinette st
and one for reverse stockinette
st which may be what you need if your cable area is on a background of purl sts.
If the ribbed edge of the hat folds over, you'll want to start the seam with the inside of the hat facing you. That way, when the edge is folded over, the seam will be hidden in the fold. Once the seam is past the fold line (or almost to the edge of the ribbing), turn the hat with the outside facing and continue the seam up the crown.