From: Moriel Schottlender Date: Mon, 3 Jul 2017 17:19:48 +0000 (-0700) Subject: RCFilters: Reverse the sorting on tags X-Git-Tag: 1.31.0-rc.0~2809 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=commitdiff_plain;h=9143bd6b647979fa325e2fe97f397d0019448e09;p=lhc%2Fweb%2Fwiklou.git 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 --- 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 = [];