{"data":{"id":"ACSD-60684","source":"qpt","sourceRef":"magento/quality-patches@1.1.84","title":"Fixes the issue where GraphQL product sorting by multiple fields doesn't work as expected.","categories":["GraphQL","Catalog/Product"],"components":["magento/module-catalog-graph-ql"],"origin":"adobe-commerce-support","documentation":{"url":"https://experienceleague.adobe.com/en/docs/commerce-operations/tools/quality-patches-tool/patches-available-in-qpt/v1-1-52/acsd-60684-graphql-product-sorting-by-multiple-fields-does-not-work-as-expected","path":"help/tools/quality-patches-tool/patches-available-in-qpt/v1-1-52/acsd-60684-graphql-product-sorting-by-multiple-fields-does-not-work-as-expected.md","blobSha":"e7e8716a60852267fe8f685337278c4d273ae56b","description":"GraphQL product sorting by multiple fields doesn't work as expected.","stepsToReproduce":"1. Create three products with names A, B, and C. 1. Fetch the products by using the following GraphQL: query FindProducts($search: String, $filter:ProductAttributeFilterInput!, $pageSize: Int!, $currentPage: Int!, $sort: ProductAttributeSortInput!){ products(search: $search, filter: $filter, pageSize: $pageSize, currentPage: $currentPage, sort: $sort){ total_count page_info{total_pages} items{ __typename url_key sku name stock_status price_range{ minimum_price{ final_price{ value currency } } } } } } Variables: { \"search\": null, \"filter\": { }, \"pageSize\": 24, \"currentPage\": 1, \"sort\": { \"name\": \"ASC\" } } 1. Repeat the query with sort : DESC","introducedInQpt":"1.1.52","createdFor":["2.4.6-p6"],"documentedRange":"2.4.6 - 2.4.6-p8","scheduledFixRelease":"2.4.8"},"files":[{"package":"magento/magento2-base","constraint":">=2.4.6 <2.4.7","path":"patches/os/ACSD-60684_2.4.6-p6.patch","blobSha":"2f40cbf6886c064c8e01fd18817208bdf017b4c3","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/os/ACSD-60684_2.4.6-p6.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-catalog-graph-ql/Plugin/ProductAttributeSortInput.php","change":"added","package":"magento/module-catalog-graph-ql"},{"path":"vendor/magento/module-catalog-graph-ql/etc/graphql/di.xml","change":"modified","package":"magento/module-catalog-graph-ql"}],"packages":["magento/module-catalog-graph-ql"],"hasTests":false,"applicableVersions":{"magento-community":["2.4.6-p15","2.4.6-p14","2.4.6-p13","2.4.6-p12","2.4.6-p11","2.4.6-p10","2.4.6-p9","2.4.6-p8","2.4.6-p7","2.4.6-p6","2.4.6-p5","2.4.6-p4","2.4.6-p3","2.4.6-p2","2.4.6-p1","2.4.6"],"magento-commerce":["2.4.6-p15","2.4.6-p14","2.4.6-p13","2.4.6-p12","2.4.6-p11","2.4.6-p10","2.4.6-p9","2.4.6-p8","2.4.6-p7","2.4.6-p6","2.4.6-p5","2.4.6-p4","2.4.6-p3","2.4.6-p2","2.4.6-p1","2.4.6"],"mage-os":[]},"unknownVersions":[],"requires":[],"replacedWith":null,"deprecated":false}],"applicableVersions":{"magento-community":["2.4.6-p15","2.4.6-p14","2.4.6-p13","2.4.6-p12","2.4.6-p11","2.4.6-p10","2.4.6-p9","2.4.6-p8","2.4.6-p7","2.4.6-p6","2.4.6-p5","2.4.6-p4","2.4.6-p3","2.4.6-p2","2.4.6-p1","2.4.6"],"magento-commerce":["2.4.6-p15","2.4.6-p14","2.4.6-p13","2.4.6-p12","2.4.6-p11","2.4.6-p10","2.4.6-p9","2.4.6-p8","2.4.6-p7","2.4.6-p6","2.4.6-p5","2.4.6-p4","2.4.6-p3","2.4.6-p2","2.4.6-p1","2.4.6"],"mage-os":[]},"conditions":null,"requirements":null},"_documentation":"https://magento.watch/api","_description":"Quality patch ACSD-60684 details"}