sorted files to packages