sort files in directory java. The most basic version of thi