# Is there a way to order loaded dicom slices by file name?

**URL:** <https://discourse.slicer.org/t/is-there-a-way-to-order-loaded-dicom-slices-by-file-name/19933>\
**Category:** Support\
**Created:** [September 30, 2021, 12:43pm UTC](https://discourse.slicer.org/t/is-there-a-way-to-order-loaded-dicom-slices-by-file-name/19933 "2021-09-30T12:43:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rafael\_Bravo](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rafael_bravo/32/12611_2.png) [@Rafael\_Bravo](https://discourse.slicer.org/u/Rafael_Bravo)\
**Post date:** [September 30, 2021, 12:43pm UTC](https://discourse.slicer.org/t/is-there-a-way-to-order-loaded-dicom-slices-by-file-name/19933/1 "2021-09-30T12:43:39Z")

</div>

When I load my dicom series into 3Dslicer the z order is shuffled, meaning that the slice location values are probably incorrect. however if I use other software to load them in order by the dicom file names, they are properly ordered. is there a way to get 3Dslicer to order slices based on their file names?

Thanks,

- Rafael Bravo

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [September 30, 2021, 1:21pm UTC](https://discourse.slicer.org/t/is-there-a-way-to-order-loaded-dicom-slices-by-file-name/19933/2 "2021-09-30T13:21:09Z")

</div>

Filenames must be ignored when a volume is reconstructed from frames stored in DICOM file format. The only information that matters is the image position and orientation tags.

Do you have any problems when you [load the image using the DICOM module](https://slicer.readthedocs.io/en/latest/user_guide/data_loading_and_saving.html#dicom-data)?
