Ah ok, did not realize '-' was technically before alphabetically.
I tried the command you suggested and the output DET final list file appeared to have sorted the files correctly. But when looking at the images in the afni gui, the x and y directions are extremely stretched, thus the problem seems to still persist. In case it matters, this only seems to happen when inputting the anatomical scan DICOM images and there are no issues with Dimon or to3d when inputting the EPI images.
Another brief note, is we were able to solve the problem by using the dcm2niix function.