Sort keys of PYSON XML value
From https://discuss.tryton.org/t/domain-not-updated/1407
The XML values must have a constant representation because they are compared during updates. The pyson expressions are encoded and stored as string so this string should always be the same. For that the dictionary keys must be sorted.