added sort to filelist

using list.sort() functionality sort the files before we create
symlinks. If this is not in the correct order all the files will get
mixed up.