From 49a0c211a06be43a4b47161af4c97c058dc97c74 Mon Sep 17 00:00:00 2001 From: Gabriel McGoldrick Date: Tue, 5 Jul 2022 10:07:49 +0100 Subject: [PATCH] 172 Add sorting to the list of topic map files --- lib/ascii_binder/engine.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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