Ivan V had been the older brother of Peter the Great and co-ruler with him, and by that reckoning, his daughters may be considered to have the prior right.
Strong-willed and eccentric, Anna was known for her cruelty and vulgar sense of humor.