# Function permissions::roles::role_reorder

> `role.reorder`: `roles` is the community's role table, `moves` the request's `(role_id, new_position)` pairs. Every role whose position changes must be below the actor before and a

`zaun_community_protocol::permissions::roles::role_reorder` · Function

```rust
pub fn role_reorder(actor: &Party, roles: &[Role], moves: &[(RoleId, u32)]) -> Result<(), Refusal>
```

`role.reorder`: `roles` is the community's role table, `moves` the request's
`(role_id, new_position)` pairs. Every role whose position changes must be below the
actor before and after; positions must stay unique and non-zero; `@everyone` cannot be
listed. The owner may move any other role.

[Full rustdoc page](/docs/api/rust/zaun-community-protocol/zaun_community_protocol/permissions/roles/fn.role_reorder.html)
