/ProductImage how to get sort order of the images?

Hi,
We have faced with the problem that we can retrieve the sort order of images for a product.
We use call //ProductImage/:entityId to get the image we have such response for example:
We have a product with ID 5da7fa9acde231ac3 w. This product has two images assigned to it 5da801eb02c8c3be8 and 5da801eb004307638

Responses have “productsColumns” array but both images in this array have sortOrder set to null. How we can identify the sort order for images as per product grid?

Examples of responses:
{
“id”: “5da801eb02c8c3be8”,
“name”: “aer_sizea_darkcarbon_frontangled_1280x1280aer_sizea_darkcarbon_frontangled_1280x1280_5da801eb0279f5780”,
“deleted”: false,
“alt”: “Aeron Chair, Size A, Dark Carbon”,
“createdAt”: “2019-10-17 05:53:47”,
“modifiedAt”: “2019-10-17 06:35:06”,
“type”: “File”,
“imageLink”: null,
“size”: 0.1,
“width”: 1280,
“height”: 1280,
“imageType”: “image/jpeg”,
“webImageType”: “product”,
“imageUrl”: “https://s3.ap-southeast-2.amazonaws.com/livingedge-web/files/9n/ox/rp/AER_SizeA_DarkCarbon_FrontAngled_1280x1280.jpg”,
“swatchValue”: null,
“notes”: null,
“createdById”: “1”,
“createdByName”: “Dan Payne”,
“modifiedById”: “1”,
“modifiedByName”: “Dan Payne”,
“imageId”: “5da801c8c1d39d0dd”,
“imageName”: “AER_SizeA_DarkCarbon_FrontAngled_1280x1280.jpg”,
“imagesMultipleIds”: [],
“imagesMultipleNames”: {},
“productsIds”: [
“5da7fa9acde231ac3”
],
“productsNames”: {
“5da7fa9acde231ac3”: “Aeron Chair Remastered (AER), Knockdown (2), Size A (A), Low-Height Range (1), Tilt Limiter & Seat Angle (3), Fully Adjustable Arms (D), Non-Upholstered Arms (W), Adjustable PostureFit SL (ALP), Carbon (CRB), Satin Carbon (SNC), Dark Carbon (DCR), Hard Casters, Carpet (BB), Dark Carbon (DCR), Carbon (23102)”
},
“productsColumns”: {
“5da7fa9acde231ac3”: {
“sortOrder”: null,
“scope”: “Global”
}
},
“brandId”: “5d5b3436c2766e1b8”,
“brandName”: “Herman Miller”,
“attributesIds”: [],
“attributesNames”: {},
“imagesMultipleTypes”: {}
}
{
“id”: “5da801eb004307638”,
“name”: “aer_sizea_darkcarbon_backangled_1280x1280aer_sizea_darkcarbon_backangled_1280x1280_5da801eb000f83345”,
“deleted”: false,
“alt”: “Aeron Chair, Size A, Dark Carbon”,
“createdAt”: “2019-10-17 05:53:47”,
“modifiedAt”: “2019-10-17 06:35:07”,
“type”: “File”,
“imageLink”: null,
“size”: 0.09,
“width”: 1280,
“height”: 1280,
“imageType”: “image/jpeg”,
“webImageType”: “product”,
“imageUrl”: “https://s3.ap-southeast-2.amazonaws.com/livingedge-web/files/wh/r5/zk/AER_SizeA_DarkCarbon_BackAngled_1280x1280.jpg”,
“swatchValue”: null,
“notes”: null,
“createdById”: “1”,
“createdByName”: “Dan Payne”,
“modifiedById”: “1”,
“modifiedByName”: “Dan Payne”,
“imageId”: “5da801c8b66587ec1”,
“imageName”: “AER_SizeA_DarkCarbon_BackAngled_1280x1280.jpg”,
“imagesMultipleIds”: [],
“imagesMultipleNames”: {},
“productsIds”: [
“5da7fa9acde231ac3”
],
“productsNames”: {
“5da7fa9acde231ac3”: “Aeron Chair Remastered (AER), Knockdown (2), Size A (A), Low-Height Range (1), Tilt Limiter & Seat Angle (3), Fully Adjustable Arms (D), Non-Upholstered Arms (W), Adjustable PostureFit SL (ALP), Carbon (CRB), Satin Carbon (SNC), Dark Carbon (DCR), Hard Casters, Carpet (BB), Dark Carbon (DCR), Carbon (23102)”
},
“productsColumns”: {
“5da7fa9acde231ac3”: {
“sortOrder”: null,
“scope”: “Global”
}
},
“brandId”: “5d5b3436c2766e1b8”,
“brandName”: “Herman Miller”,
“attributesIds”: [],
“attributesNames”: {},
“imagesMultipleTypes”: {}
}

Hello, @DmitryP. This was an issue in old TreoPIM versions. We recommend you updating TreoPIM to version 3.10.0 or newer, where it was resolved.