flow: use rule priority in match_format() function