Hi all, I solved the sorting problem with a trick. I re-sorted the list fo series UIDs given by GDCMSeriesFileNames using a comparison function that sort first considering the lenght of the string and then lexicographically. It is probably not the most fancy way, but it solves the problem. Thanks to all for the help, Alberto