Does order matter in probability?

The order does not matter when the variables are independent random variables, i.e., when the probability of one variable does not depend on the outcome of the previous. The order when a previous even influences the current one. In your example, Alice has two kids, one of which is a girl.

For More Information Please Refer: