Gollum::Wiki#pages come back sorted by title, not permalink or the default ordering from git ls-tree.

This commit is contained in:
rick
2010-09-16 09:16:42 -07:00
parent 9cc8790d4f
commit e37a8b9da4
6 changed files with 14 additions and 10 deletions
+3 -1
View File
@@ -221,7 +221,9 @@ module Gollum
#
# Returns an Array of Gollum::Page instances.
def pages(treeish = nil)
tree_list(treeish || 'master')
tree_list(treeish || 'master').sort! do |x, y|
x.title.downcase <=> y.title.downcase
end
end
# Public: Returns the number of pages accessible from a commit