Folder with final sort algorithm