Which came first the American flag or the Mexican flag?

The USA flag of stars and stripes was first adopted in 1777. The Mexican tricolor was first adopted in the 1820's. The present US flag of 50 stars became official in 1960 while the current design of the Mexican flag was adopted in 1968.