Skip to content

Commit

Permalink
Setting default sorting #21493 - Fixed default sort direction
Browse files Browse the repository at this point in the history
  • Loading branch information
Jitheesh authored and mage2pratik committed Mar 11, 2019
1 parent a089cfe commit b4283aa
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 b4283aa

Please sign in to comment.