I'm using papaya js for viewing medical images.
My problem :-
Papaya js automatically ordering the slices according to metadata.
Ex:
My array format like this below,
params['images'] = ['3.dcm','5.dcm','2.dcm','4.dcm','1.dcm'];
In my viewer i can see the order like this below
params['images'] = ['1.dcm','2.dcm','3.dcm','4.dcm','5.dcm'];
The expected output:-
How i'm making my array order, same like that, I want to see the slices order in my viewer.
params['images'] = ['3.dcm','5.dcm','2.dcm','4.dcm','1.dcm'];