diff --git a/lib/flame/render.rb b/lib/flame/render.rb
index <HASH>..<HASH> 100644
--- a/lib/flame/render.rb
+++ b/lib/flame/render.rb
@@ -80,7 +80,8 @@ module Flame
 
 		## Find layout-files by path
 		def find_layouts(path)
-			find_files(path, layout_dirs).select { |file| Tilt[file] }.sort!.reverse!
+			find_files(path, layout_dirs).select { |file| Tilt[file] }
+				.sort! { |a, b| b.split('/').size <=> a.split('/').size }
 		end
 
 		## Find possible directories for the controller
diff --git a/lib/flame/version.rb b/lib/flame/version.rb
index <HASH>..<HASH> 100644
--- a/lib/flame/version.rb
+++ b/lib/flame/version.rb
@@ -1,5 +1,5 @@
 # frozen_string_literal: true
 
 module Flame
-	VERSION = '4.3.4'.freeze
+	VERSION = '4.3.5'.freeze
 end
Fix sorting of nested layouts