Updated file and folder sort algorithm, no DOM abuse now.