feat(sort): custom series sort in study panel (#4214)

This commit is contained in:
Ibrahim authored and GitHub committed 2024-06-20 16:58:59 -04:00
1 parent 6f93449149
commit a433d406e2
17 files changed
+211 -15

No files matched your search

-5
View File
@@ -505,13 +505,8 @@ const commandsModule = ({
}: UpdateViewportDisplaySetParams) => {
const nonImageModalities = ['SR', 'SEG', 'SM', 'RTSTRUCT', 'RTPLAN', 'RTDOSE'];
// Sort the display sets as per the hanging protocol service viewport/display set scoring system.
// The thumbnail list uses the same sorting.
const dsSortFn = hangingProtocolService.getDisplaySetSortFunction();
const currentDisplaySets = [...displaySetService.activeDisplaySets];
currentDisplaySets.sort(dsSortFn);
const { activeViewportId, viewports, isHangingProtocolLayout } =
viewportGridService.getState();