Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Relation / association extension methods should use sort order

Found in

EPiServer.Commerce 11.0.0

Fixed in

EPiServer.Commerce 11.8.1

(Or a related package)

Created

Jan 30, 2018

Updated

Feb 26, 2018

Area

Core

State

Closed, Fixed and tested


Description

The GetVariants extension method for ProductContent sorts the returned ContentReferences by the SortOrder of the corrsponding relation. EntryContentBaseExtensions.GetRelatedEntries does not do the same for the returned associations. It should, and so should any other similar extension method (GetBundleEntries, etc.) where there is a clearly defined sort order.