I have a site migrated from M1 to M2 - on M1, the categories defaulted to "Best Value" for the sort order - the products within these categories commonly have mulitple instances where the position is the same value (So product 1: 5, product 2: 5, product 3: 10 etc etc).

As I understand it, if the position is the same, it will order the product ID's in ascending order.

In magento 2 however, the product ID's are sorted by descending order if there are duplicate positions. I'm not sure if this is default behaviour or a mixup with the migration, but it's throwing the catalog listing out of whack.

Is there a way I can override this behaviour so it retains the position but sorts product ID's in a different direction?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.