sort matches and popovers