Forum Discussion

Naga Abhinaya T's avatar
Naga Abhinaya T
Explorer | Level 4
8 years ago

File Listing in Ascending/Descending order

Hi,

 

We have File/Folder listing based on Alphabetical sorting in Dropbox UI. Is there a way to achieve the same using REST APIs? Also, In what order, are the files/folders given as response from the api? (like based on creation time or modified time or alphabetical order)Any help is appreciated. Thanks in advance.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff
    The Dropbox API doesn't offer the ability to sort/order files server-side, e.g., when using /2/files/list_folder[/continue], but I'll pass this along as a feature request.

    The order they are returned in is the order you should process them in, in order to receive an accurate representation of the remote state of the Dropbox folder.

    That being the case, you'll need to download and process the entries in the order provided, and then apply whatever ordering you want client-side for your UI.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,941 PostsLatest Activity: 3 hours ago
350 Following

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!