cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
What’s new: end-to-end encryption, Replay and Dash updates. Find out more about these updates, new features and more here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

File Listing in Ascending/Descending order

File Listing in Ascending/Descending order

Naga Abhinaya T
Explorer | Level 4

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.

1 Reply 1

Greg-DB
Dropbox 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.
Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?