Global search: Sort search results by number of matches per note

Use case or problem

Currently, when performing a search in a vault, we can sort the results by file name, or modified or created time. Sometimes, sorting by number of matches per file is more useful, specially when there are many files involved.

Proposed solution

Add an option to sort search results by number of results per note / file.