I would like to get array with sorted filePaths. I have managed to get sorted array with filenames like this:
fileList.addAll(Arrays.asList(curFolder.list()));
Collections.sort(fileList);
and I know about such way of getting file paths:
folder.listFiles()
I also know that I can sort all file paths by name or date but I didn't manage to do it. In the end I will add this paths to my recyclerView adapter:
FileManagerAdapter fileManagerAdapter = new FileManagerAdapter(this, (ArrayList<String>) fileList, curFolder.listFiles());
maybe I have to get file path at adapter or what? I hope you will help me :)