honestly, I would do the harvesting first always. You'll run out of berries eventually and they will need a way to feed themselves. Other than that... building is important so that you can create more villagers. Then I get medicine, science and then spirituality.