How to set higher priority for routes with certain tags

This should be solved with the question here? How to understand the function handlePriority in the FootFlagEncoder