|Jakarta @Priority annotation is used in multiple Jakarta specifiications. |
See more details here (https://docs.google.com/document/d/15MM8tX1sS_i5OacrgZZPmkT8WVamQkkziLChVVopOPw/edit#).
For ordering multiple items, the usage is consistent (ordering from smaller number to a bigger number). However, for picking one item among multiple items, CDI picks the one with the highest number while JAX-RS picks the one with the lowest number.