Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Aubry <matt@piwik.org>2015-03-18 05:33:52 +0300
committerMatthieu Aubry <matt@piwik.org>2015-03-18 05:33:52 +0300
commitc3bc0113fe3043b53ff6a96e766c2fc8dc0f1229 (patch)
tree923a51de4569ddec60bd3e22133b03b9d4c47cd9 /plugins/DevicesDetection/API.php
parent7e0d617359f0baf167d3f053f3e99a60e3c09a86 (diff)
parent76f7d00e92caed107b00b5e4c68218ea6ed78fcb (diff)
Merge pull request #7465 from piwik/datatable_tweaks
Various performance improvements and bugfixes.
Diffstat (limited to 'plugins/DevicesDetection/API.php')
-rw-r--r--plugins/DevicesDetection/API.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/DevicesDetection/API.php b/plugins/DevicesDetection/API.php
index 1f4a53e48c..b6e484f924 100644
--- a/plugins/DevicesDetection/API.php
+++ b/plugins/DevicesDetection/API.php
@@ -216,7 +216,11 @@ class API extends \Piwik\Plugin\API
*/
public function getBrowserFamilies($idSite, $period, $date, $segment = false)
{
- return $this->getBrowsers($idSite, $period, $date, $segment);
+ $table = $this->getBrowsers($idSite, $period, $date, $segment);
+ // this one will not be sorted automatically by nb_visits since there is no Report class for it.
+ $table->filter('Sort', array(Metrics::INDEX_NB_VISITS, 'desc'));
+
+ return $table;
}
/**