When I use the GraphQL API to return the products, they are not sorted by title after translation, they are only sorted in the original language.
My code:
query GetProducts(
$cursor: String
$collectionHandle: String!
$sortKey: ProductCollectionSortKeys
$reverse: Boolean
) {
collectionByHandle(handle: $collectionHandle) {
id
title
products(
first: 10
after: $cursor
sortKey: $sortKey
reverse: $reverse
filters: { tag: "course"}
) {
edges {
node {
id
title
vendor
onlineStoreUrl
tags
description
collections(first: 5) {
edges {
node {
id
title
handle
}
}
}
createdAt
featuredImage {
url
altText
}
variants(first: 50) {
edges {
node {
title
selectedOptions {
name
value
}
price {
amount
currencyCode
}
}
}
}
}
}
pageInfo {
hasNextPage
endCursor
}
}
}
}
My headers:
“Accept-Language”: “en”