You’re absolutely right. Communion should not come before Confirmation (or rather, Confirmation should come before Communion).
The Sacrament of the Eucharist completes Christian Initiation (
CCC 1322),
not the Sacrament of Confirmation (although Confirmation does complete the Sacrament of Baptism (
CCC 1304)).
Historically speaking, Confirmation always preceded First Communion. It is only in the last hundred years that this began to change to the point that many Catholics now (unfortunately) think of Confirmation as some sort of “coming of age” sacrament.
Church teaching is clear that the Eucharist completes our Initiation (and thus it seems reasonable that it should come
after Confirmation. The current practice of postponing Confirmation is not official Church teaching, nor is it universally practiced. The Eastern Catholic churches still give all three Sacraments of Initiation to infants (in the right order). RCIA follows the proper order (you will receive Confirmation prior to First Communion, even though it’s at the same Mass). Also, many parishes and even a dozen or so dioceses in the U.S. are starting to return back to the former practice. The movement is called “Restored Order”.
EDIT: Just another thing to note. Even in the Catechism, look at the order the sacraments are discussed. Baptism is discussed first, then Confirmation,
then Eucharist. This is also the order they appear in Canon Law. Any time you see the three sacraments of initiation mentioned together in any Church documents, they are listed (1) Baptism, (2) Confirmation, (3) Eucharist. I have to wonder how it ever became common practice to change this order in the first place.