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 master
Status Job ID Name Coverage
  External
passed ERP5.PerformanceTest-Master