Skip to content

Commit

Permalink
ENGCOM-4413: Setting default sorting #21493 #21498
Browse files Browse the repository at this point in the history
  • Loading branch information
sivaschenko authored Mar 8, 2019
2 parents 9e10547 + 57153d9 commit 51b6897
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ protected function _construct()
{
parent::_construct();
$this->setId('customer_orders_grid');
$this->setDefaultSort('created_at', 'desc');
$this->setDefaultSort('created_at');
$this->setDefaultDir('desc');
$this->setUseAjax(true);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ protected function _construct()
{
parent::_construct();
$this->setId('customer_view_cart_grid');
$this->setDefaultSort('added_at', 'desc');
$this->setDefaultSort('added_at');
$this->setDefaultDir('desc');
$this->setSortable(false);
$this->setPagerVisibility(false);
$this->setFilterVisibility(false);
Expand Down

0 comments on commit 51b6897

Please sign in to comment.