truncating sorted frequent items