## List::Sort() method


Ordena los elementos en la lista usando el comparador predeterminado.

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

## Ver también

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


Ordena los elementos en la lista.

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


| Parámetro | Tipo | Descripción |
| --- | --- | --- |
| comparison | Comparison\<T\> | [Comparison](../../../system/comparison/) para usar. |

## Ver también

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


Ordena los elementos en la lista.

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


| Parámetro | Tipo | Descripción |
| --- | --- | --- |
| comparador | const SharedPtr\<System::Collections::Generic::IComparer\<T\>\>\& | Comparador a usar. |

## Ver también

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


Ordena los elementos en la porción de la lista.

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


| Parámetro | Tipo | Descripción |
| --- | --- | --- |
| índice | int | Índice inicial de la porción. |
| count | int | Tamaño de la porción. |
| comparador | SharedPtr\<System::Collections::Generic::IComparer\<T\>\> | Comparador a usar. |

## Ver también

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