## List::Sort() method


Trie les éléments de la liste en utilisant le comparateur par défaut.

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

## Voir aussi

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


Trie les éléments de la liste.

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


| Paramètre | Type | Description |
| --- | --- | --- |
| comparison | Comparison\<T\> | [Comparison](../../../system/comparison/) à utiliser. |

## Voir aussi

* 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


Trie les éléments de la liste.

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


| Paramètre | Type | Description |
| --- | --- | --- |
| comparateur | const SharedPtr\<System::Collections::Generic::IComparer\<T\>\>\& | Comparateur à utiliser. |

## Voir aussi

* 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


Trie les éléments de la tranche de la liste.

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


| Paramètre | Type | Description |
| --- | --- | --- |
| indice | int | Indice de début de la tranche. |
| count | int | Taille de la tranche. |
| comparateur | SharedPtr\<System::Collections::Generic::IComparer\<T\>\> | Comparateur à utiliser. |

## Voir aussi

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