Get your taxes done using TurboTax

generally, it's the custodial parent the one the child spent over half the nights in the year with, that will prevail. court orders mean nothing to the IRS. but a parent violating a court order on claiming a dependent could likely end back up in court.