lib/gratan/client.rb in gratan-0.1.2 vs lib/gratan/client.rb in gratan-0.1.3
- old
+ new
@@ -15,10 +15,10 @@
user_host[0].empty? ? 'root' : user_host[0]
}.chunk {|user_host, attrs|
user_host[0].empty? ? 'root' : user_host[0]
}.each {|user, grants|
h = {}
- grants.each {|k, v| h[k] = v }
+ grants.sort_by {|k, v| k }.each {|k, v| h[k] = v }
dsl = Gratan::DSL.convert(h, options)
yield(user, dsl)
}
else
exported = Gratan::Exporter.export(@driver, options)