diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2015-03-18 04:07:34 +0300 |
---|---|---|
committer | Thomas Steur <thomas.steur@gmail.com> | 2015-03-18 04:07:34 +0300 |
commit | e1cb653e615c7bcdee52c4353f0bb07714835bc9 (patch) | |
tree | 7153ec78dd5b6cc2d6a7eef1315d9359fd3e9df3 /plugins/DevicesDetection/API.php | |
parent | 8dd2d8a8e15993d8bb5829aaa3b1256eaf769631 (diff) |
fix tests
Diffstat (limited to 'plugins/DevicesDetection/API.php')
-rw-r--r-- | plugins/DevicesDetection/API.php | 6 |
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; } /** |