added sorting to the folder threads in import_threaded.py