PolymerLabs / arcs

Arcs
BSD 3-Clause "New" or "Revised" License
56 stars 35 forks source link

Make RawEntity.toString() output deterministic. #7046

Closed copybara-service[bot] closed 3 years ago

copybara-service[bot] commented 3 years ago

Make RawEntity.toString() output deterministic.

Sorts singleton and collection fields by key, and sorted collection elements by value, alphabetically. This makes the output deterministic, making it much easier to diff long RawEntity strings.