Sorted metrics

Why do we need this if?