Turn order is based on initiative, and there are things you can do before triggering combat, including party positioning.