State tax filing

How to e-file multiple states (nonresident-part resident NY and part year resident NJ)?

Do i have to file federal and NY nonresident together first and then part year resident NJ or Federal return first and both state returns later? I was wondering if there is any particular order when filing non resident-part time resident income taxes.

 

@TomD8