## List::Sort() method


Ordina gli elementi nella lista usando il comparatore predefinito.

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

## Vedi anche

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


Ordina gli elementi nella lista.

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


| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| comparison | Comparison\<T\> | [Comparison](../../../system/comparison/) da utilizzare. |

## Vedi anche

* 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


Ordina gli elementi nella lista.

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


| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| comparatore | const SharedPtr\<System::Collections::Generic::IComparer\<T\>\>\& | Comparatore da utilizzare. |

## Vedi anche

* 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


Ordina gli elementi nella porzione della lista.

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


| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| indice | int | Indice iniziale della slice. |
| count | int | Dimensione della slice. |
| comparatore | SharedPtr\<System::Collections::Generic::IComparer\<T\>\> | Comparatore da utilizzare. |

## Vedi anche

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