Skip to content

Commit

Permalink
sort list of confirmation prompts by id
Browse files Browse the repository at this point in the history
  • Loading branch information
myk002 committed Jan 2, 2024
1 parent cb2a534 commit bd65dc4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gui/confirm.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bd65dc4

Please sign in to comment.