Skip to content

Commit

Permalink
Additional work for #55
Browse files Browse the repository at this point in the history
  • Loading branch information
ppadovani committed Mar 26, 2018
1 parent 6f80501 commit 54c7afb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion public/nested_support/agg_types/buckets/terms.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,11 @@ Terms.AggTypesBucketsTermsProvider = function(Private) {
if (dir === 'asc') {
routeBasedNotifier.warning('Sorting in Ascending order by Count in Terms aggregations is deprecated');
}
order._count = dir;
if (agg.params.countByParent) {
order['count_' + agg.id] = dir;
} else {
order._count = dir;
}
return;
}

Expand Down

0 comments on commit 54c7afb

Please sign in to comment.