Does ListBucket provide Key Sort Results?

When calling the S3 ListBucket command (via the REST or SOAP API), does the result set return in any particular order? I would expect, given the nature of object keys and tokens, that the result set is always sorted using the object key. But I did not see any documents confirming this.

+7
amazon-s3
source share
1 answer

Update : Amazon has changed its documentation as shown below.

They are returned in alphabetical order . List results are always returned in binary UTF-8. See http://docs.aws.amazon.com/AmazonS3/latest/dev/ListingKeysUsingAPIs.html

Amazon S3 provides a list operation that allows you to list the keys contained in a bucket. Keys selected for transfer to bucket and prefix. For example, consider a bucket called a "dictionary" that contains a key for each English word. You can make a call to list all the keys in this one that starts with the letter "q". List results are always returned in lexicographic (alphabetical) order. List results are always returned in UTF-8 binary order .

+13
source share

All Articles