Get your taxes done using TurboTax

As a California resident who sold real estate in Hawaii resulting in a capital gain, once I have completed my federal return should I file my California tax return first and then my Hawaii return, or vice-versa?  I obviously want to avoid having to pay taxes for the same capital gain in two states.