Navigation Menu

Skip to content

Commit

Permalink
Sort forward buffers by date (their name)
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Apr 28, 2015
1 parent 169a36d commit b4503c5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/droonga/forward_buffer.rb
Expand Up @@ -86,7 +86,9 @@ def start_forward
end

def buffered_messages
Pathname.glob("#{@data_directory}/*#{SUFFIX}")
Pathname.glob("#{@data_directory}/*#{SUFFIX}").sort_by do |path|
path
end
end

def empty?
Expand Down

0 comments on commit b4503c5

Please sign in to comment.