# Why are the dicom files disordered after I added them into the DICOM database?

**URL:** <https://discourse.slicer.org/t/why-are-the-dicom-files-disordered-after-i-added-them-into-the-dicom-database/24891>\
**Category:** Support\
**Tags:** dicom\
**Created:** [August 23, 2022, 5:11pm UTC](https://discourse.slicer.org/t/why-are-the-dicom-files-disordered-after-i-added-them-into-the-dicom-database/24891 "2022-08-23T17:11:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dawn\_GreyHouse](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/dawn_greyhouse/32/16396_2.png) [@Dawn\_GreyHouse](https://discourse.slicer.org/u/Dawn_GreyHouse)\
**Post date:** [August 23, 2022, 5:11pm UTC](https://discourse.slicer.org/t/why-are-the-dicom-files-disordered-after-i-added-them-into-the-dicom-database/24891/1 "2022-08-23T17:11:49Z")

</div>

I have converted 1000+ consecutive CT scanning TIFF files into DICOM files in the right order, but when I add the folder with all the converted files, 3D slicer made them into the wrong order. I checked the converted files, but they are in the right order. Does anyone know why it’s messed up?

[https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/7/2/72f36c52c219213cf96a371a044d214fbe7d396b.mp4](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/7/2/72f36c52c219213cf96a371a044d214fbe7d396b.mp4)

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [August 23, 2022, 5:51pm UTC](https://discourse.slicer.org/t/why-are-the-dicom-files-disordered-after-i-added-them-into-the-dicom-database/24891/2 "2022-08-23T17:51:00Z")

</div>

DICOM files are sorted according to metadata in the header, so if you didn’t convert them with the correct values they will be invalid. If the source data is tiff you can use the ImageStacks module in SlicerMorph instead.
