console: sort the output from the help command

Closes #11927
This commit is contained in:
Christoph Heinrich authored and Dudemanguy committed 2023-07-14 13:06:01 +00:00
1 parent fc43faa026
commit cf0373e15b
1 file changed
+3
+3
View File
@@ -326,6 +326,9 @@ end
function help_command(param)
local cmdlist = mp.get_property_native('command-list')
table.sort(cmdlist, function(c1, c2)
return c1.name < c2.name
end)
local error_style = '{\\1c&H7a77f2&}'
local output = ''
if param == '' then