A better solution would be to read all the files, sort them, and display them, then go back and read the files to get the icon, etc. The sorting would be by file name and not by the actual DS name, but it's usually close enough. The order might even be cached.
Basically, the UI has to not lock...