From 9143bd6b647979fa325e2fe97f397d0019448e09 Mon Sep 17 00:00:00 2001 From: Moriel Schottlender Date: Mon, 3 Jul 2017 10:19:48 -0700 Subject: [PATCH] RCFilters: Reverse the sorting on tags 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/specials/SpecialRecentchanges.php b/includes/specials/SpecialRecentchanges.php index 75d104bb14..d28604e792 100644 --- a/includes/specials/SpecialRecentchanges.php +++ b/includes/specials/SpecialRecentchanges.php @@ -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 = []; -- 2.20.1