That judge that ruled that was an idiot.
I mean I know they try to look out for the best interest of the child, and moving back in again with her mom after getting adjusting to living with her dad is hard, but that is still no excuse. Not to mention judges these days need to talk to the children whether they are of legal age or not just to see how they fit into the matter.