They don't all need to have be the same crime.
The priors however must have been punished (actually punished, not just subject to punishment) for a year or more. So this does permit misdemeanors...