rbynaker
Level 13

The order is completely irrelevant.  Go through the requirements for claiming a dependent.  What matters to the IRS is physical custody (number of nights) not whatever a judge put on a piece of paper.