Schaaf found out about the baptism on Facebook, documents showed.
The court documents stated that "the mother has acted selfishly by depriving father of the ability to be present at an event that was extraordinarily important to him."
The judge found Stocks in contempt of court and sentenced her to seven days in jail. She will report to jail on Friday.
In contempt cases, a judge can order someone detained if they believe someone is improperly challenging or ignoring the court's authority. Violators can be fined, jailed or both.
Channel 9 tried to talk to Judge Sean Smith about his ruling, but was told that because the child is under 18, it's still a pending case and he can't comment.