What is the sort order when GET container list up the objects?
Applies to
StorageGRID
Answer
The data type of key is text which is UTF8 encoded string so the output of GET container (regardless S3 or Swift) is ordered according to UTF8 encoding.
Example:
ndyz@ubuntu-1:~$ curl -X GET -H 'X-Auth-Token:SGRD_fa2b7e8b2a4b4dea9379bc070bdd1875' https://10.128.231.111:18083/v1/79910314025223200905/container1 -k
*0object2
.o
.object2
0object2
1001
1002
1003
1004
1098
1099
1100
=object2
o
o bject2
o*bject2
o,bject2
o-bject2
o.bject2
o0bject2
o1bject2
o=bject2
o@bject2
o^bject2
o_bject2
ob@ject2
object2
testfile
testfile2
ひらかな
中文
日本語
Additional Information
additionalInformation_text