One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
Coffeecat
7 years agoHelpful | Level 6
ListFolderAsync Order Entries by Name
I got this one running.
DropboxClient.Files.ListFolderAsync(<"">).Result.Entries
Now how do I get the entries listed by name in descending order? There's this OrderBy(of ) function on Entries but I don't know what parameter to put.
- Greg-DB
Dropbox Staff
To list the contents of a particular path, make sure you implement both ListFolderAsync and ListFolderContinueAsync, as described in the ListFolderAsync documentation. You aren't guaranteed to get everything in one call, so you need to process everything, using both methods, as described there.
Once you've retrieved all of the entries and processed them as instructed, you can sort the results however you want. Exactly how you would do so depends on your app, but it sounds like you probably want to sort by Metadata.Name.
- dropdevExplorer | Level 3
ListFolderAsync function is bad ...
the site show:
the ListFolderAsync function:
why??
- Greg-DB
Dropbox Staff
dropdev The Dropbox web site does not work exactly the same way as the Dropbox API. The ListFolder[Continue] functionality does not guarantee a particular ordering. Make sure you implement the API calls as documented to make sure you get a correct representation of the listing. You can then apply whatever sorting/ordering you want client-side.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,951 PostsLatest Activity: 3 minutes ago
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!