RCFilters: Reverse the sorting on tags
authorMoriel Schottlender <moriel@gmail.com>
Mon, 3 Jul 2017 17:19:48 +0000 (10:19 -0700)
committerMoriel Schottlender <moriel@gmail.com>
Mon, 3 Jul 2017 17:19:48 +0000 (10:19 -0700)
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

includes/specials/SpecialRecentchanges.php

index 75d104b..d28604e 100644 (file)
@@ -213,7 +213,7 @@ class SpecialRecentChanges extends ChangesListSpecialPage {
                $tagHitCounts = array_merge( $explicitlyDefinedTags, $softwareActivatedTags, $tagStats );
 
                // Sort by hits
-               asort( $tagHitCounts );
+               arsort( $tagHitCounts );
 
                // Build the list and data
                $result = [];