With this automation, you can ensure that when you add a particular label to a card, that the card is moved in priority directly to top or bottom.
When label something is added to a card, change the position to top or bottom
The parameters you set are label and priority. First, choose which label you want the priority to be automatically adjusted for. Then choose whether the card to which the label is added is moved to the top or bottom.