magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.54k stars 9.32k forks source link

Magento 2.4 catalog products sort by position is not working #34502

Closed vipin12117 closed 1 year ago

vipin12117 commented 2 years ago

Steps To Reproduce:

  1. Install AC. CE without EE with Elasticsearch.
  2. Create category.
  3. Create following products in it: !screenshot-1.png|thumbnail!
  4. Open category on Storefront and sort by position DESC: !screenshot-2.png|thumbnail!

Expected Result: Order should be following: first>eighth>seventh>sixth>fifth>fourth>third>second.

When sorting "By position DESC", products on the same position should be sorted by Product ID descending as well. When sorting "By position ASC", products on the same position should be sorted by Product ID ascending as well.

Actual Result: Order should be following: first>second>third>fourth>fifth>sixth>seventh>eighth. ___