in reply to Finding and sorting files in massive file directory

They're not dealing with such large directories, but here are a couple threads that might be relevant: I wonder if the best first step might be something like this on the command line:
for i in {a..z} do mkdir $i mv $i* $i/ done