Hello all,<br>
<br>
I need help in sorting Dicom series. <br><br><span style="font-weight: bold;">Description:</span><br>In my application, user specifies
the folder where dicom files are stored. I am using gdcmIO library to
read the series. I understand that gdcm sorts the series
according to:<br>
1. Image Position (Patient) (0020,0032)<br>
2. Image Number (0020,0013)<br>
3. File Name<br>
<br>
In my dicom data header, image position key is blank, so I believe that my series is being sort according to image number. <br>
This particular aqcuisition is from feet to head. The keys 'image number' and 'slice location' increase from feet to head.<br><br>But I want to sort them such that they are ordered from head to feet. Now, the quick fix is to flip the series which I don't want to do. 
<br><br style="font-weight: bold;"><span style="font-weight: bold;">Questions:</span><br>1. If user reads data acquired from different centers, how do I make sure that the series are always ordered from head to feet irrespective of acquisition order/image number etc.?
<br>2. Also, how can I get all the SOP instance UIDs (ordered) and non-string keys from gdcm meta dictionary?<br><br>Regards,<br><br>-Uday<br>