Sorting view results by the number of matched arguments (contextual filters)
Following is one way to achieve the specified ordering


Add a relationship to taxonomy terms.





Turn on aggregation
Set the sort criteria to COUNT DISTINCT of taxonomy term reference field.