lib/lita-github/org.rb in lita-github-0.0.8 vs lib/lita-github/org.rb in lita-github-0.0.9
- old
+ new
@@ -18,7 +18,11 @@
# Github handler common-use Organization methods
module Org
def organization(name)
name.nil? || name.empty? ? config.default_org : name
end
+
+ def sort_by_name(teams)
+ teams.sort_by { |h| h[:name].downcase }
+ end
end
end