[Config] Sort by setting name when serliazing to a string.

Part of https://github.com/CocoaPods/CocoaPods/issues/591.