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 1414use Magento \Catalog \Model \Product \Visibility ;
1515use Magento \Catalog \Model \ResourceModel \Product \Collection ;
1616use Magento \Catalog \Model \ResourceModel \Product \CollectionFactory ;
17+ use Magento \Catalog \Model \Product \ProductList \Toolbar as ToolbarModel ;
1718use Magento \Catalog \Pricing \Price \FinalPrice ;
1819use Magento \CatalogWidget \Model \Rule ;
1920use Magento \Framework \App \ActionInterface ;
3132use Magento \Rule \Model \Condition \Sql \Builder as SqlBuilder ;
3233use Magento \Widget \Block \BlockInterface ;
3334use Magento \Widget \Helper \Conditions ;
34-
3535/**
3636 * Catalog Products List widget block
3737 *
@@ -343,7 +343,7 @@ public function createCollection()
343343 */
344344 $ collection = $ this ->_addProductAttributesAndPrices ($ collection )
345345 ->addStoreFilter ()
346- ->addAttributeToSort ('entity_id ' , 'desc ' )
346+ ->addAttributeToSort ('position ' , 'asc ' )
347347 ->setPageSize ($ this ->getPageSize ())
348348 ->setCurPage ($ this ->getRequest ()->getParam ($ this ->getData ('page_var_name ' ), 1 ));
349349
You can’t perform that action at this time.
0 commit comments