worklfow: save state permissions sorted

When editing a state permission mapping the roles were not sorted,
because WorkflowState_getPermissionMatrixContext uses a set. Sort
before setting the attribute, to prevent useless diffs in ZODB history
and business template.
1 job for fix/workflow_state_permission_sorted
Status Job ID Name Coverage
  External
running ERP5.PerformanceTest-Master

14613:51:39