diff --git a/app/Models/AnalyticsPodcastByCountryModel.php b/app/Models/AnalyticsPodcastByCountryModel.php index d26b5868451136825a836247de75da32ebd298a7..d8e8c9b5506f85bb9c6e846bac8ed5e808cfa55f 100644 --- a/app/Models/AnalyticsPodcastByCountryModel.php +++ b/app/Models/AnalyticsPodcastByCountryModel.php @@ -40,7 +40,7 @@ class AnalyticsPodcastByCountryModel extends Model '`podcast_id`' => $podcastId, '`date` >' => date('Y-m-d', strtotime('-1 week')), ]) - ->orderBy('`labels`', 'ASC') + ->orderBy('`values`', 'DESC') ->findAll(); cache()->save( diff --git a/app/Models/AnalyticsPodcastByRegionModel.php b/app/Models/AnalyticsPodcastByRegionModel.php index 9953fbe2e05bca3f82f289bd8bc503241bd7a958..d384011640e5bce1fb5b15bd0b0247f83dc8ca4d 100644 --- a/app/Models/AnalyticsPodcastByRegionModel.php +++ b/app/Models/AnalyticsPodcastByRegionModel.php @@ -44,7 +44,7 @@ class AnalyticsPodcastByRegionModel extends Model '`podcast_id`' => $podcastId, '`date` >' => date('Y-m-d', strtotime('-1 week')), ]) - ->orderBy('`country_code`, `region_code`', 'ASC') + ->orderBy('`values`', 'DESC') ->findAll(); cache()->save( diff --git a/app/Models/AnalyticsWebsiteByBrowserModel.php b/app/Models/AnalyticsWebsiteByBrowserModel.php index 4d5c0e280166fa9a1c96b2a89237724a1eb5ccf0..3e3fdce579c58a938eaf5ac587c22477437ba043 100644 --- a/app/Models/AnalyticsWebsiteByBrowserModel.php +++ b/app/Models/AnalyticsWebsiteByBrowserModel.php @@ -40,7 +40,7 @@ class AnalyticsWebsiteByBrowserModel extends Model '`podcast_id`' => $podcastId, '`date` >' => date('Y-m-d', strtotime('-1 week')), ]) - ->orderBy('`browser`', 'ASC') + ->orderBy('`values`', 'DESC') ->findAll(); cache()->save( diff --git a/app/Models/AnalyticsWebsiteByEntryPageModel.php b/app/Models/AnalyticsWebsiteByEntryPageModel.php index 91c4053a1f13375c5082119481d6819c217538fb..352017f2b064d69721d74d775743a9220cd5c827 100644 --- a/app/Models/AnalyticsWebsiteByEntryPageModel.php +++ b/app/Models/AnalyticsWebsiteByEntryPageModel.php @@ -40,7 +40,8 @@ class AnalyticsWebsiteByEntryPageModel extends Model '`podcast_id`' => $podcastId, '`date` >' => date('Y-m-d', strtotime('-1 week')), ]) - ->orderBy('`entry_page`', 'ASC') + ->orderBy('`values`', 'DESC') + ->limit(10) ->findAll(); cache()->save( diff --git a/app/Models/AnalyticsWebsiteByRefererModel.php b/app/Models/AnalyticsWebsiteByRefererModel.php index e45ea20ba2e7ef89c970a1f89fe57645ccf750c1..9f414bcf40b7657a426f394de2b9368d471b874c 100644 --- a/app/Models/AnalyticsWebsiteByRefererModel.php +++ b/app/Models/AnalyticsWebsiteByRefererModel.php @@ -40,7 +40,8 @@ class AnalyticsWebsiteByRefererModel extends Model '`podcast_id`' => $podcastId, '`date` >' => date('Y-m-d', strtotime('-1 week')), ]) - ->orderBy('`referer`', 'ASC') + ->orderBy('`values`', 'DESC') + ->limit(10) ->findAll(); cache()->save( @@ -69,7 +70,8 @@ class AnalyticsWebsiteByRefererModel extends Model '`podcast_id`' => $podcastId, '`date` >' => date('Y-m-d', strtotime('-1 week')), ]) - ->orderBy('`domain`', 'ASC') + ->orderBy('`values`', 'DESC') + ->limit(10) ->findAll(); cache()->save(