summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2015-05-16 16:52:07 -0400
committerTed Trask <ttrask01@yahoo.com>2015-05-16 16:52:07 -0400
commit87ca08296ea7e735bfa3ee955be32b8bc3537f1c (patch)
tree2efcb6b79929ffa794368be853d668640c6a7798
parent2273114504873ef43b5d150b82a71909b9831fca (diff)
downloadacf-lib-87ca08296ea7e735bfa3ee955be32b8bc3537f1c.tar.bz2
acf-lib-87ca08296ea7e735bfa3ee955be32b8bc3537f1c.tar.xz
Sort the output of fs.find_files_as_array to make results consistent
-rw-r--r--fs.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs.lua b/fs.lua
index e605fa2..364e9fc 100644
--- a/fs.lua
+++ b/fs.lua
@@ -199,6 +199,8 @@ function mymodule.find_files_as_array ( what, where, follow, t )
table.insert (t, where )
end
+ table.sort(t)
+
return (t)
end