diff --git a/elasticsearch-model/lib/elasticsearch/model/multimodel.rb b/elasticsearch-model/lib/elasticsearch/model/multimodel.rb index 6b5fc2a8..8e816d2d 100644 --- a/elasticsearch-model/lib/elasticsearch/model/multimodel.rb +++ b/elasticsearch-model/lib/elasticsearch/model/multimodel.rb @@ -42,7 +42,7 @@ def self.add(klass) # Returns an Array of registered models # def self.all - __instance.models + __instance.models.sort_by(&:name) end # Adds a model to the registry