Make JSON from UML be sorted by name + attributes sorted by primary_key, then by name