mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
ArrayCtrl: SortDefault desc parameter
git-svn-id: svn://ultimatepp.org/upp/trunk@11844 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
e14a7b151f
commit
5a21eecf71
4 changed files with 11 additions and 9 deletions
|
|
@ -136,11 +136,11 @@ ArrayCtrl::Column& ArrayCtrl::Column::Sorting()
|
|||
return SortingBy(StdValueCompare);
|
||||
}
|
||||
|
||||
ArrayCtrl::Column& ArrayCtrl::Column::SortDefault()
|
||||
ArrayCtrl::Column& ArrayCtrl::Column::SortDefault(bool desc)
|
||||
{
|
||||
if(!cmp && !order && !line_order)
|
||||
Sorting();
|
||||
arrayctrl->SetSortColumn(index);
|
||||
arrayctrl->SetSortColumn(index, desc);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue