summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2023-09-12 22:38:41 +0800
committerruki <[email protected]>2023-09-12 22:38:41 +0800
commitf3f566ae6ffc126153af87c4056f29cfb4579105 (patch)
tree7210f5de709edff0d278f4ded45b4da5feed19a1
parentf3db883a0e206b5dbb6cf2f54b65a5f47240e953 (diff)
sort task list
-rw-r--r--xmake/core/base/option.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/base/option.lua b/xmake/core/base/option.lua
index d8475031f..76dcc633a 100644
--- a/xmake/core/base/option.lua
+++ b/xmake/core/base/option.lua
@@ -658,7 +658,7 @@ function option.show_main()
table.insert(tablecontent, {{string.format("%s%ss: ", string.sub(category.name, 1, 1):upper(), string.sub(category.name, 2)), style="${reset bright}"}})
-- print tasks
- for taskname, taskinfo in pairs(category.tasks) do
+ for taskname, taskinfo in table.orderpairs(category.tasks) do
-- init the task line
local taskline = string.format(narrow and " %s%s" or " %s%s",