To all of those who still think that Family Law in America has any traces of justice left in it, read this. Read the whole thing.
As far as I can gleam from the article, the father in question has defied no court orders. Nor did he fail to meet some prearranged deadline or statutory requirement. He merely didn’t do something the judge feels would have been convenient. And that is enough for him to potentially (probably?) lose his daughter.
As for the judge, she ought to keep in mind the words of the prophet Isaiah:
Woe to those who decree iniquitous decrees,
    and the writers who keep writing oppression
(Isaiah 10:1)