Skip to content

GraphQl - Product sort with price and name work incorrectly #39917

Open
@m08110071

Description

@m08110071

Preconditions and environment

  • Adobe Commerce 2.4.7
  • Install module magento/magento2-pwa

Steps to reproduce

  • Create 2 simple products with different price
  • Create new category and assign two products to It
  • Reindex full indexer
  • Call products query with filter by category and sort by price DESC, name ASC

Expected result

Product with higher price should be display first

Actual result

Product with smaller price should be display first

Additional information

Issue come from the plugin vendor/magento/module-eav-graph-ql-aux/Plugin/ReorderNullAttributeValues.php. It work when sort with single field only

Release note

No response

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: CatalogComponent: GraphQLGraphQLIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Reported on 2.4.7Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

    Type

    No type

    Projects

    Status

    Ready for Development

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions