aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormpeterv <mpeterval@gmail.com>2016-03-22 11:21:01 +0300
committermpeterv <mpeterval@gmail.com>2016-03-22 11:42:59 +0300
commitb0d396b22febd4b3b717f6ddc3732c9dc57fad7c (patch)
tree86cfa800758606727e5694e2e4e0ebf194604d52 /src
parentc6c83a69e39db4036c60bd2f260fd37deefa0ff0 (diff)
downloadluarocks-b0d396b22febd4b3b717f6ddc3732c9dc57fad7c.tar.gz
luarocks-b0d396b22febd4b3b717f6ddc3732c9dc57fad7c.tar.bz2
luarocks-b0d396b22febd4b3b717f6ddc3732c9dc57fad7c.zip
luarocks show: print modules and deps sorted
Affects order when --modules and --deps flags are used.
Diffstat (limited to 'src')
-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)