sorting folder, creating array