SaaS CMS has officially launched! Learn more now.

Sorting ProductContent

Vote:
 

Hi,

I am using Find.13.2.8 and trying to sort my searchresult of products (derives directly from ProductContent), and I am only interested in getting my Swedish translations, but for some reason my result comes unsorted, and english is included in my search result. What am I missing?

var productSearch = _client.Search<MyProductContent>(Language.Swedish);
    productSearch = productSearch.OrderBy(x => x.DisplayName);

var result= productSearch.GetContentResult();

Projected output:

[0]: {{ DisplayName = HÅRDVAXOLJA 3062 OSMO, Language = en, ContentLink = 5__CatalogContent }}
[1]: {{ DisplayName = TRAPPKANTSLIST SA36 SVART, Language = sv, ContentLink = 7__CatalogContent }}
[2]: {{ DisplayName = HÅRDVAXOLJA 3062 OSMO, Language = sv, ContentLink = 5__CatalogContent }}
[3]: {{ DisplayName = TRAPPKANTSLIST SA36 SVART, Language = en, ContentLink = 7__CatalogContent }}
[4]: {{ DisplayName = HÅRDVAXOLJA 3062 OSMO, Language = sv, ContentLink = 5__CatalogContent }}
[5]: {{ DisplayName = HÅRDVAXOLJA 3062 OSMO, Language = en, ContentLink = 5__CatalogContent }}

#253067
Apr 12, 2021 11:40
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.