## List::Sort() method


Sortiert die Elemente in der Liste mit dem Standardvergleich.

```cpp
void System::Collections::Generic::List<T>::Sort()
```

## Siehe auch

* Class [List](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.Page for C++](../../../)
## List::Sort(Comparison\<T\>, bool) method


Sortiert die Elemente in der Liste.

```cpp
void System::Collections::Generic::List<T>::Sort(Comparison<T> comparison, bool)
```


| Parameter | Typ | Beschreibung |
| --- | --- | --- |
| comparison | Comparison\<T\> | [Comparison](../../../system/comparison/) zu verwenden. |

## Siehe auch

* Class [Comparison](../../../system/comparison/)
* Class [List](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.Page for C++](../../../)
## List::Sort(const SharedPtr\<System::Collections::Generic::IComparer\<T\>\>\&) method


Sortiert die Elemente in der Liste.

```cpp
void System::Collections::Generic::List<T>::Sort(const SharedPtr<System::Collections::Generic::IComparer<T>> &comparator)
```


| Parameter | Typ | Beschreibung |
| --- | --- | --- |
| Vergleichsfunktion | const SharedPtr\<System::Collections::Generic::IComparer\<T\>\>\& | Comparator, der verwendet werden soll. |

## Siehe auch

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [IComparer](../../icomparer/)
* Class [List](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.Page for C++](../../../)
## List::Sort(int, int, SharedPtr\<System::Collections::Generic::IComparer\<T\>\>) method


Sortiert die Elemente im Listenausschnitt.

```cpp
void System::Collections::Generic::List<T>::Sort(int index, int count, SharedPtr<System::Collections::Generic::IComparer<T>> comparator)
```


| Parameter | Typ | Beschreibung |
| --- | --- | --- |
| Index | int | Startindex des Abschnitts. |
| count | int | Größe des Abschnitts. |
| Vergleichsfunktion | SharedPtr\<System::Collections::Generic::IComparer\<T\>\> | Comparator, der verwendet werden soll. |

## Siehe auch

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [IComparer](../../icomparer/)
* Class [List](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.Page for C++](../../../)
