## Sort(Cells, int, int, int, int) {#sort_2}

对该区域的数据进行排序。

```csharp
public int[] Sort(Cells cells, int startRow, int startColumn, int endRow, int endColumn)
```

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| cells | Cells | 单元格包含数据区域。 |
| startRow | Int32 | 区域的起始行。 |
| startColumn | Int32 | 区域的起始列。 |
| endRow | Int32 | 区域的最后一行。 |
| endColumn | Int32 | 区域的最后一列。 |

### 返回值

排序后的行/列的原始索引（绝对位置，例如A列为0，B为1，...）。 如果此排序操作不需要移动行/列，将返回null。

### 也可以看看

* class [Cells](../../cells)
* class [DataSorter](../../datasorter)
* 命名空间 [Aspose.Cells](../../datasorter)
* 部件 [Aspose.Cells](../../../)

---

## Sort(Cells, CellArea) {#sort_1}

对该区域的数据进行排序

```csharp
public int[] Sort(Cells cells, CellArea area)
```

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| cells | Cells | 单元格包含数据区域。 |
| area | CellArea | 需要排序的区域 |

### 返回值

排序后的行/列的原始索引（绝对位置，例如A列为0，B为1，...）。 如果此排序操作不需要移动行/列，将返回null。

### 也可以看看

* class [Cells](../../cells)
* struct [CellArea](../../cellarea)
* class [DataSorter](../../datasorter)
* 命名空间 [Aspose.Cells](../../datasorter)
* 部件 [Aspose.Cells](../../../)

---

## Sort() {#sort}

对范围内的数据进行排序。

```csharp
public int[] Sort()
```

### 返回值

排序后的行/列的原始索引（绝对位置，例如A列为0，B为1，...）。 如果此排序操作不需要移动行/列，将返回null。

### 也可以看看

* class [DataSorter](../../datasorter)
* 命名空间 [Aspose.Cells](../../datasorter)
* 部件 [Aspose.Cells](../../../)

<!-- DO NOT EDIT: generated by xmldocmd for Aspose.Cells.dll -->
