File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/code/Magento/CatalogWidget/Block/Product Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 14
14
use Magento \Catalog \Model \Product \Visibility ;
15
15
use Magento \Catalog \Model \ResourceModel \Product \Collection ;
16
16
use Magento \Catalog \Model \ResourceModel \Product \CollectionFactory ;
17
+ use Magento \Catalog \Model \Product \ProductList \Toolbar as ToolbarModel ;
17
18
use Magento \Catalog \Pricing \Price \FinalPrice ;
18
19
use Magento \CatalogWidget \Model \Rule ;
19
20
use Magento \Framework \App \ActionInterface ;
31
32
use Magento \Rule \Model \Condition \Sql \Builder as SqlBuilder ;
32
33
use Magento \Widget \Block \BlockInterface ;
33
34
use Magento \Widget \Helper \Conditions ;
34
-
35
35
/**
36
36
* Catalog Products List widget block
37
37
*
@@ -343,7 +343,7 @@ public function createCollection()
343
343
*/
344
344
$ collection = $ this ->_addProductAttributesAndPrices ($ collection )
345
345
->addStoreFilter ()
346
- ->addAttributeToSort ('entity_id ' , 'desc ' )
346
+ ->addAttributeToSort ('position ' , 'asc ' )
347
347
->setPageSize ($ this ->getPageSize ())
348
348
->setCurPage ($ this ->getRequest ()->getParam ($ this ->getData ('page_var_name ' ), 1 ));
349
349
You can’t perform that action at this time.
0 commit comments