MDL-46269 tool_httpsreplace: Fix incorrect sorting

This commit is contained in:
David Mudrák
2017-10-18 19:44:58 +02:00
committed by Eloy Lafuente (stronk7)
parent bc22db02fb
commit 91f015171f
+1 -1
View File
@@ -83,7 +83,7 @@ if ($options['replace']) {
$urlfinder = new \tool_httpsreplace\url_finder();
$results = $urlfinder->http_link_stats();
asort($urlfinder);
asort($results);
$fp = fopen('php://stdout', 'w');
fputcsv($fp, ['clientsite', 'httpdomain', 'urlcount']);
foreach ($results as $domain => $count) {