aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/luarocks/show.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/luarocks/show.lua b/src/luarocks/show.lua
index 08b2673f..0f29e468 100644
--- a/src/luarocks/show.lua
+++ b/src/luarocks/show.lua
@@ -28,7 +28,9 @@ With these flags, return only the desired information:
28]] 28]]
29 29
30local function keys_as_string(t, sep) 30local function keys_as_string(t, sep)
31 return table.concat(util.keys(t), sep or " ") 31 local keys = util.keys(t)
32 table.sort(keys)
33 return table.concat(keys, sep or " ")
32end 34end
33 35
34local function word_wrap(line) 36local function word_wrap(line)