11 Also Joshua the son of Nun was persecuted as Jesus our Redeemer was persecuted. Joshua the son of Nun was persecuted by the unclean nations; and Jesus our Redeemer was persecuted by the foolish people. Joshua the son of Nun took away the inheritance from his persecutors and gave it to his people; and Jesus our Redeemer took away the inheritance from His persecutors and gave it to strange nations. Joshua the son of Nun caused the sun to stand still in the heavens, and took vengeance on the nations his persecutors; and Jesus our Redeemer caused the sun to set in the midst of the day, that the persecuting people which crucified Him might be ashamed.
Joshua the son of Nun divided the inheritance unto his people; and Jesus our Redeemer has promised to give to the nations the land of life. Joshua the son of Nun caused Rahab the harlot to live; and Jesus our Redeemer gathered together and gave life to the Church, though polluted by the harlotry (of idolatry). Joshua the son of Nun on the seventh day overthrew and cast down the walls of Jericho; and Jesus our Redeemer, on His seventh day, on the Sabbath of the rest of God, this world shall be dissolved and fall.
Joshua the son of Nun stoned Achor, because he stole of the accursed thing; and Jesus our Redeemer separated Judas from the disciples, His friends, because he stole of the money of the poor. Joshua the son of Nun, when he was dying, laid down a testimony among his people; and Jesus our Redeemer, when He was taken up, laid down a testimony among His apostles.
Source: Demonstrations (New Advent)