---
title: "Operations: Server: How to reoder database members?"
url: "https://docs.ravendb.net/6.2/client-api/operations/server-wide/reorder-database-members"
version: "6.2"
language: "csharp"
---

# Operations: Server: How to reoder database members?

> Client language: C#.
>
> RavenDB publishes an official agent skill for coding assistants at https://docs.ravendb.net/skills/ravendb/SKILL.md (also installable with `npx skills add ravendb/skills`). The skill describes itself as: "Read this before writing any RavenDB query, client call or /databases/ request. Covers server setup, document modelling, the Node.js, .NET and Python clients, RQL, indexes, vector search and AI agents. Code written from recall tends to run and return the wrong rows, because RQL resembles SQL and the clients take field names as plain strings."

**ReorderDatabaseMembersOperation** allows you to change the order of nodes in the [Database Group Topology](https://docs.ravendb.net/6.2/studio/database/settings/manage-database-group.md).

## Syntax

```csharp
public ReorderDatabaseMembersOperation(string database, List<string> order)
```

| Parameters | | |
| - | - | - |
| **database** | string | Name of a database to operate on |
| **order** | List\&lt;string> | List of node tags of all existing nodes in the database group, listed in the exact order that you wish to have. <br /> Throws `ArgumentException` is the reordered list doesn't correspond to the existing nodes of the database group |

## Example I

```csharp
// Assume that the current order of database group nodes is : ["A", "B", "C"]

// Change the order of database group nodes to : ["C", "A", "B"]

store.Maintenance.Server.Send(new ReorderDatabaseMembersOperation("Northwind", 
  new List<string>
  {
      "C", "A", "B"
  }));
```

## Example II

```csharp
// Get the current DatabaseTopology from database record
var topology = store.Maintenance.Server.Send(new GetDatabaseRecordOperation("Northwind")).Topology;

// Reverse the order of database group nodes
topology.Members.Reverse();
store.Maintenance.Server.Send(new ReorderDatabaseMembersOperation("Northwind", topology.Members));
```
