From this point the Prophet relates what the Lord has spoken: that the people of Israel, whom he had created as servants under the common law, he changed into sons, and said: Israel is my firstborn son. Then too the Lord in the Gospel promises the Apostles that if they do his will he will no longer call them servants but friends (John 15:15). But if Israel should grow proud on hearing that he is the firstborn, let him understand that he is called firstborn for this reason, that second sons are signified from among the nations. For he is not called only-begotten, which would exclude other broth...ers, but firstborn, to show that others too will follow; and yet, according to the mysteries of the Scriptures, it is not the firstborn who receive the inheritance but the second. Cain was the firstborn, but the gifts of Abel pleased God. Ishmael was the firstborn, but Isaac received the inheritance. Esau was the firstborn, but Jacob the supplanter snatched away the father's blessing. Reuben was the firstborn, but the blessing of the seed of Christ is nevertheless transferred to Judah. Thus they were first according to the order of calling, and were called the head; we, the second, who were called the tail, have been turned into the head and are called sons of God.
Source: Commentary on Isaiah