diff options
| author | mpeterv <mpeterval@gmail.com> | 2016-03-22 11:21:01 +0300 |
|---|---|---|
| committer | mpeterv <mpeterval@gmail.com> | 2016-03-22 11:42:59 +0300 |
| commit | b0d396b22febd4b3b717f6ddc3732c9dc57fad7c (patch) | |
| tree | 86cfa800758606727e5694e2e4e0ebf194604d52 /src | |
| parent | c6c83a69e39db4036c60bd2f260fd37deefa0ff0 (diff) | |
| download | luarocks-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.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) |
