From b0d396b22febd4b3b717f6ddc3732c9dc57fad7c Mon Sep 17 00:00:00 2001 From: mpeterv Date: Tue, 22 Mar 2016 11:21:01 +0300 Subject: luarocks show: print modules and deps sorted Affects order when --modules and --deps flags are used. --- src/luarocks/show.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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: ]] local function keys_as_string(t, sep) - return table.concat(util.keys(t), sep or " ") + local keys = util.keys(t) + table.sort(keys) + return table.concat(keys, sep or " ") end local function word_wrap(line) -- cgit v1.2.3-55-g6feb