Doesn't really matter, as long as your liverock is directly touching the bottom of the tank. If you put the sand in first, then sit the rock on top of the sand, your sand could shift causing all of your rock to tumble. So preferable to do rock then sand.