diff --git a/lib/ascii_binder/engine.rb b/lib/ascii_binder/engine.rb index d7b89af..a0519ce 100644 --- a/lib/ascii_binder/engine.rb +++ b/lib/ascii_binder/engine.rb @@ -111,7 +111,7 @@ def topic_map_file # create a combined temp file with all topic maps tf = Tempfile.new("#{TOPIC_MAP_FILENAME}") - Dir.glob("#{topic_map_folder}/*.yml").each do |filename| + Dir.glob("#{topic_map_folder}/*.yml").sort.each do |filename| lines = IO.read(filename) tf << lines end