Is there an order to complete multi-state returns?

I live in Delaware, work in Pennsylvania and have rental income in Arizona.   

Last year, I completed returns for all three states and Turbo Tax showed me getting refunds from all 3.  I thought, "Great!!" until Pennsylvania sent a letter mid year saying that I owed the refund money back to them.

Given that I have residency in only one state, is there an order in which I should be completing the state returns so that they are calculated correctly?   

Further, if order is important, how can I verify / change the order for last year to see if my refund from DE would be different given that I had to pay back PA?

Thank you