lib/nanoc/toolbox/helpers/gravatar.rb in nanoc-toolbox-0.0.6 vs lib/nanoc/toolbox/helpers/gravatar.rb in nanoc-toolbox-0.0.7
- old
+ new
@@ -102,10 +102,10 @@
# Return now if the options hash is empty after cleanup
return '' if options.empty?
# Build the parameters string
- '?' + options.sort.map { |e| e = e.join('=') if e.size == 2}.join('&')
+ '?' + options.sort{|a,b| a.to_s <=> b.to_s}.map{ |e| e = e.join('=') if e.size == 2}.join('&')
end
private
# Generate email address hash
def hash_email(email)