We want the results to show most used tags on top and least
on bottom, so use a reverse sort.
Bug: T166914
Change-Id: I1473070ac9293626bde5e95dad79c7e0ca954f70
$tagHitCounts = array_merge( $explicitlyDefinedTags, $softwareActivatedTags, $tagStats );
// Sort by hits
$tagHitCounts = array_merge( $explicitlyDefinedTags, $softwareActivatedTags, $tagStats );
// Sort by hits
- asort( $tagHitCounts );
+ arsort( $tagHitCounts );
// Build the list and data
$result = [];
// Build the list and data
$result = [];