//clitk::GetSortedIndex(locs, sliceIndex);
//Look for files into GDCMSeriesFileNames, because it sorts files correctly and take the order
const std::vector<std::string> & temp = nameGenerator->GetFileNames(*sn);
for(unsigned int i=0; i<files.size(); i++) {
int j(0);
//clitk::GetSortedIndex(locs, sliceIndex);
//Look for files into GDCMSeriesFileNames, because it sorts files correctly and take the order
const std::vector<std::string> & temp = nameGenerator->GetFileNames(*sn);
for(unsigned int i=0; i<files.size(); i++) {
int j(0);