Skip to content

Commit

Permalink
sort finder summary alphabetically
Browse files Browse the repository at this point in the history
  • Loading branch information
DerGuteMoritz committed May 3, 2009
1 parent 03e0c10 commit 7d7c9b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/f/finder.rb
Expand Up @@ -27,7 +27,7 @@ def get(a)

def summary
max = @@finders.keys.map { |k| k.to_s.size }.max
@@finders.map { |name, f| [name.to_s.ljust(max), ' ', f.description, "(#{f.base_uri})"].join(' ') }.join("\n")
@@finders.map { |name, f| [name.to_s.ljust(max), ' ', f.description, "(#{f.base_uri})"].join(' ') }.sort.join("\n")
end

def attr(*names)
Expand Down

0 comments on commit 7d7c9b6

Please sign in to comment.