Sorting by "aggregation type: count" is not working I am trying to solve this problem: Drupal 7 Most Popular Tags in a list as a block: How? with Views 7.x-3.0-rc1.
The solution is the answer by Dylan Tack.


create a view of terms
add a required relationship to &quot;content using tags&quot;
set use aggregation: yes
add the &quot;term name&quot; field a second time, set one of the to &quot;aggregation type: count&quot;
add &quot;term name&quot; as a sort criteria, set &quot;aggregation type: count&quot;

A sample view is at http://drupalbin.com/19467

It works until I try to sort the list; in that case, I get an error when adding a sort criteria. If I set &quot;aggregation type: count&quot; the sort-criteria changes to &quot;Broken/missing handler&quot; and it is not sorting.
Do you have any idea? Am I doing something wrong?
This issue has been resolved in the development snapshot version 7.x-3.x-dev.