From bd65dc4bc21799aed0859b8b05fb2d903306cfe2 Mon Sep 17 00:00:00 2001 From: Myk Taylor Date: Mon, 1 Jan 2024 19:51:49 -0800 Subject: [PATCH] sort list of confirmation prompts by id --- gui/confirm.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/gui/confirm.lua b/gui/confirm.lua index 06171b1283..36e55b0d40 100644 --- a/gui/confirm.lua +++ b/gui/confirm.lua @@ -62,6 +62,7 @@ function Confirm:refresh() } }) end + table.sort(choices, function(a, b) return a.id < b.id end) local list = self.subviews.list local selected = list:getSelected() list:setChoices(choices)