Is alway laterally (to the outside of knee).
It tends to reocurr. Make the inside muscles of front of thigh stronger by bending knee slightly and lifting it across other knee (like when you cross legs when sitting down). Do repetitions if 5-10 throughout the day. This will keep patella align in the middle so it does not dislocate laterally.