order by number of matches for pmatrix
sort by number of matches and then also by points