I upgraded my RAM first, then the HD, because 10 GB was not much to work with, and finally I actually replaced my DVD drive with another battery when the drive broke.
The hard drive might be more important if you do not have a few gigs free after you everything you want installed. Running out of page file space can really cripple you, particularly since you will never have enough ram to not have more page outs.