fix: image slices are displayed in reverse order, if we switch from common layout to 2D MPR (#5022)

This commit is contained in:
arul-trenser authored and GitHub committed 2025-07-17 08:11:26 -04:00
1 parent 8dda7d5f81
commit 6a4ca70836
19 files changed
+202 -102

No files matched your search

@@ -26,3 +26,17 @@ summary: Migration guide for OHIF 3.11 additional changes
+ extensionsManager
+ });
```
**Images sort by position patient**
The ImageSet sort has been modified: images are now sorted by ImagePositionPatient by default. If ImagePositionPatient is not available, the sort will fall back to InstanceNumber.
**To revert to the previous sorting method, you can add the customization instanceSortingCriteria as shown below:**
```
customizationService.setCustomizations({
'instanceSortingCriteria': {
$set: {defaultSortFunctionName: 'default'},
},
});
```
@@ -1818,6 +1818,31 @@ window.config = {
};
},
}],
};
`,
},
{
id: 'instanceSortingCriteria',
description: 'Defines the instance sorting criteria to sort the images',
default: `{
sortFunctions: {},
defaultSortFunctionName: '',
}`,
configuration: `
window.config = {
// rest of window config
customizationService: [
{
'instanceSortingCriteria': {
$set: {
sortFunctions: {
sort: (a, b) => {}
},
defaultSortFunctionName: 'sort',
},
},
}
],
};
`,
},