## wxDataViewSortedListModel

This class is used for sorting data. It does not contain any data itself. Rather, it provides a sorted interface for another list model.

Currently, the sorting algorithm isn't thread safe. This needs to be fixed.

Derived from

wxDataViewListModel
wxDataViewModel
wxObject

Include files

<wx/dataview.h>

wxDataViewSortedListModel::wxDataViewSortedListModel
wxDataViewSortedListModel::~wxDataViewSortedListModel
wxDataViewSortedListModel::GetAscending
wxDataViewSortedListModel::Resort
wxDataViewSortedListModel::SetAscending

### wxDataViewSortedListModel::wxDataViewSortedListModel

wxDataViewSortedListModel(wxDataViewListModel* child)

Constructor. child is the child data model the data of which this model is supposed to present in a sorted way.

### wxDataViewSortedListModel::~wxDataViewSortedListModel

~wxDataViewSortedListModel()

Destructor.

### wxDataViewSortedListModel::GetAscending

bool GetAscending()

Returns true if the data is sorted in ascending order.

### wxDataViewSortedListModel::Resort

void Resort()

Tell the model to resort its data.

### wxDataViewSortedListModel::SetAscending

void SetAscending(bool ascending)

Set the sort order of the data.