diff --git a/lib/toto.rb b/lib/toto.rb
index <HASH>..<HASH> 100644
--- a/lib/toto.rb
+++ b/lib/toto.rb
@@ -143,7 +143,7 @@ module Toto
     end
 
     def self.articles ext
-      Dir["#{Paths[:articles]}/*.#{ext}"].sort { |file_name| File.basename(file_name) }
+      Dir["#{Paths[:articles]}/*.#{ext}"].sort_by { |file_name| File.basename(file_name) }
     end
 
     class Context
Ops, wrong call to .sort_by