lib/flok/build.rb in flok-0.0.53 vs lib/flok/build.rb in flok-0.0.54
- old
+ new
@@ -12,10 +12,10 @@
#Will also create the path if it dosen't exist
def self.src_glob type, dir_path, output_path
out = ""
FileUtils.mkdir_p(dir_path)
FileUtils.mkdir_p(File.dirname(output_path))
- Dir[File.join(dir_path, "*.#{type}")].each do |f|
+ Dir[File.join(dir_path, "*.#{type}")].natural_sort.each do |f|
out << File.read(f) << "\n"
end
File.write(output_path, out)
end