Add sorting functions to metrics

Add a sorting function for reports - for example, sort impressions from high to low and vice versa