how do i make it sort by newest is displayed.
without having to do anything in the code, the easiest thing to sort something, that just can't be true how bad magento 2 is
Please follow the steps below to display the products Sorted by newest in Magento 2:
With these changes, the product listing on your storefront should now be sorted by the newest first based on the product creation date. Note that this will only apply to products that have the "Created At" attribute set correctly, and it may take some time for the changes to take effect depending on your cache settings.
If you find our reply helpful, please give us kudos.
A Leading Magento Development Agency That Delivers Powerful Results, Innovation, and Secure Digital Transformation.
WebDesk Solution Support Team