Installing the CPU and heatsink first can make it significantly easier to put the heatsink on, and it reduces the amount you are flexing the board. Putting in the ram is often just a bit easier since you have more room to work with, thats optional as to whether you do it inside or outside the case, but i would do the CPU and heatsink outside.