sortFilesBySize was added + Refactoring