whereargument on the
alertsnode of the Craft API.
whereallows constructing an expression that will be matched against the available Alerts and filter. The general syntax is to use the field from the Alert entity and compare it with a certain value using a specific operator.
secondFieldare matching provided values.
publishedAtfield in descending (most recent Alerts first) order. To change the order to ascending order (oldest published Alerts first), it's possible to specify the
orderByargument on the