Overlap in a rulegroup

Development overview says

Overlapping matches for rules in the same rulegroup are filtered out to avoid duplicate matches for the same error.

Which rule of the group will be shown to the user in case of overlap?

The first match should be kept and the others should be removed.

Ok, so it would make sense to start with the most specific rule and put more general rules after that.