How should I file a nonresident Maryland return for sale of sale of an inherited house?

My mother, who lived in Maryland, made my two sisters (both Maryland residents) and me (a Virginia resident) co-owners of her house a couple of years before she died.  When my mother died, my sisters and I became sole owners of the house.  We spent about a year and a half getting the house ready for sale and then selling it.  One of my sisters lived in the house for a portion of this time.  When the house sold, we split the proceeds equally.  Since I was not a Maryland resident, at closing, 7.5% Maryland tax was withheld from my share.  I will need to file federal, Virginia resident, and Maryland nonresident returns.  My questions are: Is the profit from the house considered an inheritance or just sale of a property I partially owned (is this distinction even important in any way)?  Am I correct in assuming that I report only the house sale proceeds on the Maryland return and do not report house sale proceeds on the Virginia return?  Elsewhere I read that in a case like this, the nonresident return should be completed first in TurboTax, followed by the federal and resident state return.  Is it important to do this?  Any other considerations or pointers on this situation?