Base64 MD5 of strings and JSON, where JSON attributes are sorted before comparison for consistent results