Dear Dynamicweb,
Vi have an issue with "wrong" variant group sorting (please find this image: https://www.screencast.com/t/mLrKO3eNzp), but the sort order is correct in the database.
Can you please add this section: "ORDER BY VariantGroupProductRelationSorting" to the line marked with red
Public Overridable Function GetAllVariantGroupProductRelations() As IEnumerable(Of VariantGroupProductRelation)
Dim sqlBuilder As New CommandBuilder()
sqlBuilder.Add("SELECT * FROM EcomVariantgroupProductRelation ")
Dim result As New List(Of VariantGroupProductRelation)()
Using dataReader As IDataReader = Database.CreateDataReader(sqlBuilder)
While dataReader.Read()
Dim relation As VariantGroupProductRelation = FillVariantGroupProductRelation(dataReader)
result.Add(relation)
End While
End Using
Return result
End Function
Best regards, Anders