[COOK-3047] Sort directives hash before writing php.ini template

http://tickets.opscode.com/browse/COOK-3047