Skip to content

Commit

Permalink
Sort items based on name by default in docfile
Browse files Browse the repository at this point in the history
  • Loading branch information
nesquena committed Dec 15, 2011
1 parent 4406c1a commit 204d5b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gitdocs/docfile.rb
Expand Up @@ -31,7 +31,7 @@ def initialize(path)
end

def items
subdirs + files
(subdirs + files).sort { |a,b| a.name.downcase <=> b.name.downcase }
end

def parent=(dir)
Expand Down

0 comments on commit 204d5b3

Please sign in to comment.