Suppose I have this document:

* topic1                                               :tag1:tag2:tag3:
* topic2                                               :tag1:tag2:tag4:
* topic3                                               :tag1:tag3:tag4:
* topic4                                               :tag2:tag3:tag4:
* topic5                                               :tag1:tag2:
* topic6                                               :tag1:tag4:
* topic7                                               :tag3:tag4:
* topic8                                               :tag1:

And I turn on org-agenda m, then search for tag1|tag3|tag4. Emacs will then show the results (all entries match) in the above order. Is there a way for Emacs to show based on the number of tags matched ("sort based on relevance"), e.g.:

* topic2                                               :tag1:tag2:tag4:
* topic1                                               :tag1:tag2:tag3:
* topic3                                               :tag1:tag3:tag4:
* topic4                                               :tag2:tag3:tag4:
* topic6                                               :tag1:tag4:
* topic5                                               :tag1:tag2:
* topic7                                               :tag3:tag4:
* topic8                                               :tag1:

Regards,
BS