diff --git a/contrib/ruby_event_store-rom/lib/ruby_event_store/rom/repositories/stream_entries.rb b/contrib/ruby_event_store-rom/lib/ruby_event_store/rom/repositories/stream_entries.rb index b9f8ba1b6f..fb507206b0 100644 --- a/contrib/ruby_event_store-rom/lib/ruby_event_store/rom/repositories/stream_entries.rb +++ b/contrib/ruby_event_store-rom/lib/ruby_event_store/rom/repositories/stream_entries.rb @@ -52,6 +52,7 @@ def search_streams(stream_name) .where { stream.like("#{stream_name}%") } .distinct .limit(10) + .order(:stream) .pluck(:stream) .map { |name| Stream.new(name) } end