ESV Study Bible: First" second" third" then seems to be a ranking of importance or benefit to the church, with apostles being primary and then prophecy and teaching also contributing greatly to building others up.
The apostolic ministry is actually the first one that our Lord, Jesus, established in the New Testament church.
And when it was day, he called unto him his disciples: and of them he chose twelve, whom also he named apostles.
Why did Jesus establish the apostolic ministry first? Because it was to be the foundation of the church government in the New Testament, as the priesthood was the foundation of the ministry in the Old Testament. So, without apostles in the ministry, the ministry gifts are literally without the necessary foundation.
And (you) are built upon the foundation of the apostles and prophets, Jesus Christ himself being the chief corner stone.
There are governmental levels in spiritual realms. These are called "principalities, powers and rulers." Each has a different realm of authority, a different authority level, and a different manner of operation.