“I will restore your judges as at the first.” When Christ sets up his kingdom on earth, he will be assisted in governing the earth by people who have been faithful to him (see commentary on Jer. 23:4). The phrase, “as at the first” seems to refer to the early reign of David when the Davidic reign was considered ideal and the judges David set up were righteous men. [For more on Christ’s future kingdom on earth, see Appendix 3, “Christ’s Future Kingdom on Earth”].
“After that.” Jerusalem had been mostly run by ungodly kings and priests (although not all of them were), and that made life hard on the people. In the Messianic Kingdom, Jesus Christ will be king and reign in righteousness (Isa. 11:3-5), and he will restore godly judges and leaders. Then even the people will call Jerusalem, “City of Righteousness; Faithful Town” (which can also be translated: “City of the Righteous, Community of Faithfulness”). Thus this verse is a testimony to the fact that if a society is going to be godly, the leaders must be godly, and in the Messianic Kingdom of Christ they will be.
“Righteousness.” In this context, “righteousness” is doing what is right to God and others. In the Millennial Kingdom, Jerusalem will be called the “City of Righteousness” (or City of Justice) because people will do what is right to God and each other, and Jesus Christ will reign as king over the earth and the Law will go out from Jerusalem all over the world. [For more on “righteousness” having the meaning of doing what is right, see commentary on Matt. 5:6].