When you have a pattern composed of subpatterns that are on the same level, the priority one is based on the order. The highest priority will be the pattern at the top, and the lowest the bottom pattern, regardless of their weight. Thus, the selected pattern will be the first one to match.
For example:
In case that a pattern matches the subpatterns
system and
user, the selected subpattern will be user, despite having less weight, because it is higher than system.