As long as the events occured in the exact order you say, this is a triple play. The runner on second was forced, meaning he can't stay there, and second base is no longer a "safe haven"
If the shortstop had tagged second base first the force would be removed and the runner would now be able to use the base as a safe haven. This is why the order of events matters.