Move #sorted_hash into Stats class