T201016 Active Member Licensed User Longtime User Apr 1, 2022 #1 Storage.SelectDir (True) Wait For Storage_ExternalFolderAvailable For Each f As ExternalFile In Storage.ListFiles (Storage.Root) . . . Click to expand... Hello everyone! Recently, while testing the ExternalStorage library, I noticed that the file list is unsorted ... How to sort a list of directories and files ?
Storage.SelectDir (True) Wait For Storage_ExternalFolderAvailable For Each f As ExternalFile In Storage.ListFiles (Storage.Root) . . . Click to expand... Hello everyone! Recently, while testing the ExternalStorage library, I noticed that the file list is unsorted ... How to sort a list of directories and files ?
DonManfred Expert Licensed User Longtime User Apr 1, 2022 #2 B4X: dim l as list = Storage.ListFiles (Storage.Root) l.sort(true) For Each f As ExternalFile In l Upvote 0
T201016 Active Member Licensed User Longtime User Apr 1, 2022 #3 DonManfred said: B4X: dim l as list = Storage.ListFiles (Storage.Root) l.sort(true) For Each f As ExternalFile In l Click to expand... Thank you @DonManfred In general, I am also curious whether the time of sorting directories along with files on a USB stick will be a further problem to be solved on older phones. Upvote 0
DonManfred said: B4X: dim l as list = Storage.ListFiles (Storage.Root) l.sort(true) For Each f As ExternalFile In l Click to expand... Thank you @DonManfred In general, I am also curious whether the time of sorting directories along with files on a USB stick will be a further problem to be solved on older phones.