The source project of this merge request has been removed.
Sort thresholdvalues by prior and etamax when querying run2 TriggerDB (cherry-picked from !67810)
Change desired also in the 23.0 branch for the stability of the trigger menu metadata.
See merge request !67810 (merged) and ATR-28626.