Skip to content

Commit

Permalink
[location] merge location metrics by name to get rid of multiple Unkn…
Browse files Browse the repository at this point in the history
…owns
  • Loading branch information
ar2rsawseen committed Jul 27, 2015
1 parent 0c4bb8c commit 0b860a3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
{ "name":"u" },
{ "name":"n" }
]);

locationData.chartData = countlyCommon.mergeMetricsByName(locationData.chartData, "country");
locationData.chartData = _.sortBy(locationData.chartData, function(obj) { return -obj.t; });

if (options && options.maxCountries && locationData.chartData) {
Expand Down

0 comments on commit 0b860a3

Please sign in to comment.