One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
sergey-sm
3 years agoNew member | Level 2
Dropbox Java SDK - does "listRevisions(String path)" return ordered list of revisions?
Hi, I need to know if the order of returned file versions is guaranteed for this method https://dropbox.github.io/dropbox-sdk-java/api-docs/v5.2.0/com/dropbox/core/v2/files/DbxUserFilesRequests.html#listRevisions(java.lang.String) ? I need to restore the latest previous version of a file if a version id is not provided for our API.
The documentation doesn't indicate a specific sort order, so I can't guarantee if/how it will be sorted. I'll ask the team to document/guarantee a particular order, but I can't promise if/when that would be done. That being the case, I recommend applying whatever sorting you need client-side to be sure.
- Greg-DB
Dropbox Staff
The documentation doesn't indicate a specific sort order, so I can't guarantee if/how it will be sorted. I'll ask the team to document/guarantee a particular order, but I can't promise if/when that would be done. That being the case, I recommend applying whatever sorting you need client-side to be sure.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,941 PostsLatest Activity: 2 hours 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!