delivered the opinion of the court:
Arсher Bank, a lienholder-defendant in a foreclosure action brought by Washington Mutual Bank, EA. (WMB), seeks reversal of an order dismissing its request that the trial court vacate an order defaulting it. Archer made its request under section 2 — 1401 of the Code of Civil Procedure (Code) (735 ILCS 5/2 — 1401 (West 2006)) and, in the alternative, under section 2 — 1301(e) of the Code (735 ILCS 5/2 — 1301(e) (West 2006)). The trial court held that the request was untimely as a motion under section 2 — 1301(e) and insufficient as a petition under section 2 — 1401. On appeal Archer argues only that the trial court erred in finding the request insufficient as a section 2 — 1401 petition. If we view this appeal as one from the dismissal of a section 2 — 1401 рetition, it is too late. However, it is timely as one from the order ending the underlying foreclosure case. Looking beyond Archer’s waiver of the matter, we hold that the trial court erred in ruling that the request to vacate the default was untimely under section 2 — 1301(e). We therefore vacate the ruling and the final judgment in the foreclosure case, and we remand the matter for the court to give proper consideration to Archer’s motion.
On June 1, 2005, WMB filed a complaint to foreclose the first mortgage on a Woodridge residential property. It named as defendants the property owners, James J. Kelly III and Lorinda A. Kelly. It also named Kaminco, Inc., and its owner, David Kaminskas (collectively, Kaminco), Archer, Seven Bridges Estates Homeowners’ Association, and, per standard practice, unknown owners and nonrecord claimants. WMB alleged that Archer held two mortgages, which it had recorded on June 7, 1999, and July 9, 2002, and that Kaminco held a lien, based on its recording of a memorandum of judgment against James Kelly on March 5, 2003.
Kaminco appeared promptly and answered, agreeing that it had a lien but stating lack of knowledge and demanding proof of (among other things) Archer’s liens. It did not file an affidavit of its lack of knowledge. As of August 15, 2005, the Kellys, Archer, аnd the homeowners’ association had not appeared, and the court found them in default that day. Also on the 15th, it entered summary judgment against Kaminco and a judgment of foreclosure. The foreclosure judgment recognized Kaminco’s lien, with a balance of $133,345.73, as subordinate to that of WMB, but did not recognize аny other subordinate liens. The order set a sheriff’s sale for January 12, 2006. The sale did not go forward on that day; Kaminco later stated that this cancellation was at Archer’s request.
On February 7, 2006, Archer filed a “Motion to Vacate any Defaults and *** for Entry of a Judgment in Favor of Archer Bank.” In the introduction to the filing, it cited seсtion 2 — 1401 of the Code, but later cited both sections 2 — 1301(e) and 2 — 1401 as the source of the court’s authority to vacate the default. It asked that the court vacate the default against it so that it could prove the existence of its liens for $218,488.06 and those liens’ priority. Archer asserted that the existence of its liens gave it what amounted to a meritorious defense.
Kaminco moved under section 2 — 615 of the Code (735 ILCS 5/2— 615 (West 2006)) to dismiss the request, arguing that it was too late as a section 2 — 1301(e) motion and that, as a section 2 — 1401 petition, it failed to allege due diligence and a meritorious defense. At a hearing on March 14, 2006, Archer argued that, because the final order in a foreclosure action is the order approving the distribution of sale proceeds, section 2 — 1401 did not apply. The court agreed with Kaminco that the request was too late as a section 2 — 1301(e) motion and that, under section 2 — 1401, Archer had failed to state a cause of action because it had not alleged that it had been diligent in defending itself and in bringing its petition. The court therefore ruled that it had no option but to dismiss the filing. However, the order stated that “[t]his order is without prejudice to Defendant Archer Bank or its right to any surplus that may exist after payments to creditors who hаve exercised their rights have been duly paid from the proceeds of [the] Sheriff Sale.” The court did not explain how Archer could retain the right to seek funds from the sale.
The sheriff’s sale took place on April 11, 2006. Archer was the winning bidder, bidding $447,000; this bid gave the court approximately $257,000 to distribute after the satisfaction of WMB’s lien.
On April 12, 2006, Archer filed, pursuant to sections 2 — 1301(e) and 2 — 1401, an “[a]mended” motion to vacate the default. It asked the court to enter judgment against the Kellys for $218,488.06 and to find that a lien in that amount survived “for purposes of Archer Bank’s Petition for the Surplus of the Sale.”
On May 5, 2006, Lorinda Kelly, who had filed an appearancе on April 19, 2006, filed an objection to approval of the report of sale. She asked that the court rule that Kaminco’s lien interest attached only to James Kelly’s half interest in the property; she and James were joint tenants. She further asked that the court reconsider its treatment of Kaminco’s lien as “superior to ARCHER’s” or “discharge[ ]” Archer’s claim.
On May 26, 2006, the court approved the report of sale. At that time, it allowed Archer to prove the existence of its liens, “but without any effect on [the] prior order of 3/14/06, wherein [the] interest of [Kaminco] was found superior to [that of] ARCHER BANK.” Archer then filed an affidavit avеrring that the balance on its liens was $257,478.85.
On September 27, 2006, the court ordered that Kaminco receive $121,239.42, reflecting its hen on James Kelly’s share of the property minus his homestead exemption. It ordered that Archer receive the remaining surplus, except that, because of Archer’s “waiver,” the court ruled that Lorinda Kelly was entitled to her homestead exemption on the property. On October 27, 2006, Archer filed a motion to reconsider. It argued that the only basis for the court’s subordination of Archer’s liens was as a form of punishment for Archer’s failure to appear. On December 14, 2006, the court denied the motion tо reconsider. On January 12, 2007, Archer filed a notice of appeal stating that it was challenging the order of September 27, 2006 (the distribution order), and the order of December 14, 2006 (the order denying its motion to reconsider). On appeal, it challenges the court’s dismissal of its February 7, 2006, “Motion to Vacate any Defaults аnd *** for Entry of a Judgment in favor of Archer Bank” in its section 2 — 1401 aspect.
On appeal, Archer argues only that the court erred in dismissing Archer’s section 2 — 1401 petition when it ruled that it could not grant it absent evidence of Archer’s diligence.
The way Archer initially set out its claim of error presented us with a jurisdictional problem. Althоugh none of the parties to this appeal raised the issue of our jurisdiction, a reviewing court has a duty to consider sua sponte whether it has jurisdiction. In re Marriage of Link,
To the extent that this appeal is solely one challenging the dismissal of a section 2 — 1401 petition, it is untimely. The court dismissed Archer’s request to vacate the default on March 14, 2006, but Archer did not appeal until January 12, 2007, 10 months later.
However, as to the underlying foreclosure action, this court does have jurisdiction to review the trial court’s orders of September 27, 2006, and December 14, 2006, and all earlier nonfinal orders that produced the final judgment embodied in those orders (see In re D.R.,
We, of course, can look beyond a waiver, in the interests of justice or to maintain a uniform body of preсedent. See In re Estate of Funk,
We hold that the trial court erred when it found that Archer’s request to vacate was untimely as a motion under section 2 — 1301(е). Section 2 — 1301(e) states that a “[trial] court may in its discretion, before final order or judgment, set aside any default, and may on motion filed within 30 days after entry thereof set aside any final order or judgment upon any terms and conditions that shall be reasonable.” 735 ILCS 5/2 — 1301(e) (West 2006). A judgment or order is “final” for the purposes of section 2 — 1301(e) only if it is final and appealable. In Krai, a First District panel explained why this is so. At the risk of oversimplification, we summarize that reasoning here. Supreme Court Rule 304(a) states that, absent a finding by the trial court that allows enforcement or appeal of an appropriate judgment, “any judgment that adjudiсates fewer than all the claims or the rights and liabilities of fewer than all the parties *** is subject to revision at any time before the entry of a judgment adjudicating all the claims, rights, and liabilities of all the parties.” 210 Ill. 2d R. 304(a). (Conversely, judgments are enforceable or appealable only if the trial court cannоt modify them under this rule — either because the court has entered a finding of enforceability or appealability or because the judgment resolves all matters.) Another way of putting this is that the rule contemplates the trial court’s modifying its orders while it retains jurisdiction to do so. Section 2 — 1301(e), which is the modern replаcement for the old rule that a court could modify its own orders any time within the court’s term, is the mechanism for implementing the modifications contemplated by Rule 304(a), and thus it needs to be available while the court retains jurisdiction to modify its orders. (Section 2 — 1401, by contrast, is a mechanism for revesting jurisdiction in the trial court after it has lapsed. The implication is that section 2 — 1401 has no proper function while the trial court retains jurisdiction to modify its orders.) We find this reasoning persuasive and therefore follow Krai.
Illinois law is clear that the judgment in a foreclosure case that ends a foreclosure case — and thus ends the free modifiability of preceding orders under Rule 304(a) — is the approval of the sale and the distribution of the proceeds. In re Marriage of Verdung,
Because the trial court did not recognize that it should evaluate Archer’s filing under the standards for a section 2 — 1301(e) motion, we must remand the matter for reconsideration under those standаrds. See In re Adoption of D.,
That the court granted Archer some relief (by allowing it to prove the existencе of its liens) does not change the result here. Had the court understood that it could act only under section 2 — 1301(e), it might have granted different relief. Further, we question whether the relief the court granted, effectively switching the priorities of Archer’s and Kaminco’s liens, was appropriate section 2 — 1301(e) relief. Evеn had the priority switch been a choice crafted by the court under section 2 — 1301(e), it would have been a bad choice. First, the conditions of setting aside a default generally put the parties in the places they would have been had the defaulting party acted in time; that typically means paying feеs and expenses associated with the delay. See, e.g., Ward v. Rosenfeld,
Kaminco argues that Archеr sold the Kellys’ property at a good profit and therefore does not need any other relief. Nothing showing Archer’s profit is part of the record on appeal, so Kaminco’s argument is improper. Allstate Insurance Co. v. Kovar,
For the reasоns stated, we vacate the denial of Archer’s section 2 — 1301(e) motion and the order distributing the proceeds of the sheriffs sale, and we remand the matter to the trial court for further proceedings consistent with this opinion.
Vacated and remanded.
ZENOFF, PJ., and JORGENSEN, J., concur.
Notes
The judgment of foreclosure itself is final, in the sense that a party can appeal it with a Rule 304(a) finding. Verdung,
