How does the stop order work?

The Stop order is a trigger, and when it is reached, a corresponding order is generated.

There are Stop and Stop-Limit orders:

When the Stop order is activated, the Market order is generated.

When the Stop-Limit order is activated, the Limit order is generated.

The Stop order price is a trigger, and when it is reached, a corresponding order (market or Limit) will be generated.