diff options
-rw-r--r-- | src/luarocks/show.lua | 4 |
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 | ||
30 | local function keys_as_string(t, sep) | 30 | local 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 " ") | ||
32 | end | 34 | end |
33 | 35 | ||
34 | local function word_wrap(line) | 36 | local function word_wrap(line) |