Hines, Chief Justice.Carzell Moore appeals from a trial court order rejecting his “Amended Motion for Out of Time Appeal.” For the reasons that follow, we affirm.In 1977, Moore was convicted of the rape and murder of Teresa Allen, and sentenced to death. Moore v. State, 240 Ga. 807 (243 SE2d 1) (1978). In a federal habeas corpus case, Moore was granted a new sentencing proceeding. See Moore v. Kemp, 809 F2d 702 (11th Cir. 1987); Moore v. Zant, 682 FSupp. 549 (M.D. Ga. 1988). In the course of the new state sentencing proceeding, the State filed notice of its intent to seek the death penalty; Moore moved in the trial court to bar the State from seeking the death penalty, the trial court denied the motion, and this Court affirmed. Moore v. State, 263 Ga. 586 (436 SE2d 201) (1993). On June 18, 2002, Moore, assisted by counsel, pled guilty to rape and malice murder, and was sentenced to life imprisonment without the possibility of parole under former OCGA § 17-10-30.1,[1] the trial court finding aggravating circumstances to exist surrounding the murder, including rape.On June 22, 2017, Moore, acting pro se, filed a motion for an out-of-time appeal in the Superior Court of McDuffie County, alleging that the sentence of life without the possibility of parole was void, that his sentence contravened public policy, and that counsel who represented him during the 2002 plea and sentencing hearing was ineffective; Moore also moved that venue be changed to the Superior Court of Monroe County, which was granted. On September 20, 2017, addressing Moore’s motion for an out-of-time appeal, the Superior Court of Monroe County denied the motion, finding that Moore had elected to enter his guilty pleas and accept a sentence of life imprisonment without the possibility of parole after discussing the matter with counsel “for some time prior to the hearing.” The court also found that the sentence was not a void sentence, did not contravene public policy under OCGA § 17-10-16 and Brantley v. State, 268 Ga. 151, 153 (486 SE2d 169) (1997), and that Moore was not prejudiced by the sentence, as the State intended to seek the death penalty and Moore benefitted from the pleas by not having to face it.Moore did not file a notice of appeal from the September 20, 2017 order; rather, on October 3, 2017, he filed in the trial court what he styled an “Amended Motion for Out of Time Appeal.”[2] On October 19, 2017, the court rejected the motion, finding that it was untimely in light of the trial court’s September 20, 2017 denial of the initial motion; as to the merits, the court also ruled that there was no violation of Moore’s due process rights during the 2002 hearing, and that Moore’s 2002 trial counsel was not ineffective. On November 3, 2017, Moore filed his notice of appeal, specifying that it was taken from the October 19, 2017 order.The trial court was correct to reject Moore’s “Amended Motion for Out of Time appeal.” Moore was convicted and sentenced after he pled guilty to the charges of rape and malice murder. “When a defendant seeks leave to pursue an out-of-time appeal from a conviction entered upon a guilty plea, he must show that the claims of error that he would raise in the out-of-time appeal would be resolved favorably to him based upon the existing record. [Cit.]“ Usher v. State, __ Ga. __, __ (__ SE2d __) (2018) (Case No. S18A0274, decided May 7, 2018). The grant or denial of a motion for an out-of-time appeal is “the functional equivalent of the entry of a judgment.” Fairclough v. State, 276 Ga. 602, 603 (1) (581 SE2d 3) (2003). As such, the statutes governing the pursuit of appeals apply, including OCGA § 5-6-34 (a) (1)’s[3] designation of a final judgment as being subject to appeal, see Sotter v. Stephens, 291 Ga. 79 (727 SE2d 484) (2012), and the requirement of OCGA § 5-6-38 (a)[4] that a notice of appeal be filed within 30 days of the entry ofjudgment. See Cody v. State, 277 Ga. 553 (592 SE2d 419) (2004). The written order entered on September 20, 2017 disposed of Moore’s motion for out-of-time appeal, see Keller v. State, 275 Ga. 680 (571 SE2d 806) (2002), and accordingly, Moore had until October 20, 2017 to file a notice of appeal from that order. However, Moore did not do so, instead filing the “Amended Motion for Out of Time Appeal.”[5]Under the circumstances, Moore’s attempt to amend the already adjudicated motion for out-of-time appeal was untimely and jurisdictionally improper before the trial court. Although the trial court recognized this fact, the court’s order “denied” the motion rather than “dismissed” it. As this Court has noted, when a trial court is presented with a motion it lacks jurisdiction to decide, the trial court should dismiss the motion rather than deny it. See Hammond v. State, 292 Ga. 237, 238 n.2 (734 SE2d 396) (2012). And yet we have affirmed the denial of such motions. See, e.g., McGee v. State, 296 Ga. 353, 353 (1) (765 SE2d 347) (2014) (affirming denial of untimely motion to withdraw guilty plea); Hammond, 292 Ga. at 238 (affirming denial of untimely motion in arrest of judgment); Lay, 289 Ga. at 212 (3) (same). But in those cases, there is no evidence that the trial court denied the motion on the merits. McGee, 296 Ga. at 353 (court denied motion without a hearing); Hammond, 292 Ga. at 238 (motion denied based on finding that court lacked jurisdiction to consider it); Lay, 289 Ga. at 211 (trial court “summarily denied” motion). Absent evidence to the contrary, we presume that trial judges, as public officers, follow the law in the exercise of their statutory duties and authority. See Lathrop v. Deal, 301 Ga. 408, 444, n.32 (2017); see also Nash v. State, 271 Ga. 281, 284 (519 SE2d 893) (1999) (relying on a long-standing presumption “in favor of the regularity and legality of all proceedings in the courts below”). Given this presumption, a trial court’s mere “denial” of a motion it lacks jurisdiction to decide without more cannot be assumed to be a decision on the merits, and so its “denial” rather than “dismissal” of an untimely motion does not require vacatur of that order. See Davis v. State, 274 Ga. 865 (561 SE2d 119) (2002) (affirming denial of untimely motion to withdraw guilty plea while noting trial court should have dismissed the motion; no indication denial was on the merits). That presumption does not apply here, however, because the court’s order plainly shows that it denied Brooks’s untimely motion on the merits, concluding that Brooks was “well-advised, and knowingly and intelligently entered his guilty plea[.]” Because the trial court decided the merits of a motion it lacked jurisdiction to decide, we vacate the trial court’s order and remand with instructions to dismiss. See Parker v. Leeuwenburg, 300 Ga. 789, 793 (797 SE2d 908) (2017) (vacating where trial court addressed appellants’ claims on the merits despite their lack of standing); Humphrey v. State, 299 Ga. 197, 199 (1) (787 SE2d 169) (2016) (vacating where trial court denied, rather than dismissed, untimely motion to withdraw guilty plea).Brooks v. State, 301 Ga. 748, 752 (2) (804 SE2d 1) (2017).Certainly the trial court addressed the merits of Moore’s motion. But, the situation in this case differs significantly from that in Brooks; here the order reveals that the trial court ruled on the merits of Moore’s motion in addition to its jurisdictional ruling, essentially advancing alternative bases for rejecting the requested relief. See Rooney v. State, 287 Ga. 1, 2 (1) (690 SE2d 804) (2010). Accordingly, this is not a case in which the trial court merely decided the merits of a motion over which it lacked jurisdiction, and it is not necessary for us to vacate the order and remand to the trial court with instructions to dismiss thecase. Brooks, supra. See also Ricks v. State,____ Ga.__ ,__ (n. 1) (__ SE2d___ )(2018) (Case No. S18A0012, decided May 7, 2018).[6] Accordingly, the judgment of the trial court is affirmed.Judgment affirmed. All the Justices concur.