topN

Ordering groups by a metric before the limit.