Chronologically, you should play first The Legend of Zelda Oracle of Seasons, and then you should play Oracle of Ages. However, you can play them in any order and get the same experience.