remember one thing ........strength of the base determines the order of the reaction.......if the base is weak .....it takes some time for the base to attack the nucleophilic site.......meanwhile the substrate dissociates into ions and SN1 reaction takes place .........if the base is strong ,it immediately attacks the nucleophilic site before the substrate dissociates hence SN2 reaction takes place...........