Sort stats array by count