# Incorrect Date Sorting in DICOM database

**URL:** <https://discourse.slicer.org/t/incorrect-date-sorting-in-dicom-database/18250>\
**Category:** Support\
**Tags:** dicom\
**Created:** [June 21, 2021, 12:39pm UTC](https://discourse.slicer.org/t/incorrect-date-sorting-in-dicom-database/18250 "2021-06-21T12:39:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexander\_Ling](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/alexander_ling/32/11327_2.png) [@Alexander\_Ling](https://discourse.slicer.org/u/Alexander_Ling)\
**Post date:** [June 21, 2021, 12:39pm UTC](https://discourse.slicer.org/t/incorrect-date-sorting-in-dicom-database/18250/1 "2021-06-21T12:39:15Z")

</div>

When I try to sort images that I’ve loaded into 3DSlicer’s DICOM database by “Last study date”, the column is sorted alphabetically rather than by date (i.e. all of the images taken on Mondays at the top, then images taken on Sundays, then Thursdays, etc.). I’m not sure if this is a bug per se, but it’s not particularly useful behavior. A screenshot is attached below with the days of the month obscured to further deidentify the data.

![Screenshot 2021-06-21 082916](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/f/b/fb354ed0747e4e84c25384ead8f5f052d944ca5e.jpeg)

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [June 21, 2021, 12:44pm UTC](https://discourse.slicer.org/t/incorrect-date-sorting-in-dicom-database/18250/2 "2021-06-21T12:44:09Z")

</div>

Please try the latest preview version. I have fixed this issue recently.

---

<div class="post-metadata">

**Author:** ![Alexander\_Ling](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/alexander_ling/32/11327_2.png) [@Alexander\_Ling](https://discourse.slicer.org/u/Alexander_Ling)\
**Post date:** [June 21, 2021, 12:50pm UTC](https://discourse.slicer.org/t/incorrect-date-sorting-in-dicom-database/18250/3 "2021-06-21T12:50:47Z")

</div>

Thank you for the quick reply! I just installed version 14.13.0 (revision 29990, built 2021-06-21), and the dates now sort correctly.
